Table of Contents

Method GetFixedByDouble

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

GetFixedByDouble<T>(double, int)

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

public static T GetFixedByDouble<T>(double src, int shift)

Parameters

src double

Source value (源值).

shift int

Binary shift of fixed point number (定点数的位移).

Returns

T

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

Type Parameters

T

Target type (目标类型).