Table of Contents

Method GetFixedByDoubleUseOne

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

GetFixedByDoubleUseOne<T>(double, double)

Converts a double to the fixed point number of the target type (将 double 转换为目标类型的定点数). Use the fixedOne parameter (使用 fixedOne 参数).

public static T GetFixedByDoubleUseOne<T>(double src, double fixedOne)

Parameters

src double

Source value (源值).

fixedOne double

The fixed point number of the value 1 (值1的定点数)

Returns

T

Returns target type value (返回目标类型的值).

Type Parameters

T

Target type (目标类型).