Vector3d.Clamp 方法

定义

重载

Clamp(Vector3d, Vector3d, Vector3d)
Clamp(Vector3d, Vector3d, Vector3d, Vector3d)

将向量固定到给定的最小和最大向量

Clamp(Vector3d, Vector3d, Vector3d)

public static OpenTK.Vector3d Clamp (OpenTK.Vector3d vec, OpenTK.Vector3d min, OpenTK.Vector3d max);
static member Clamp : OpenTK.Vector3d * OpenTK.Vector3d * OpenTK.Vector3d -> OpenTK.Vector3d

参数

vec
Vector3d
min
Vector3d
max
Vector3d

返回

适用于

Clamp(Vector3d, Vector3d, Vector3d, Vector3d)

将向量固定到给定的最小和最大向量

public static void Clamp (ref OpenTK.Vector3d vec, ref OpenTK.Vector3d min, ref OpenTK.Vector3d max, out OpenTK.Vector3d result);
static member Clamp :  *  *  *  -> unit

参数

vec
Vector3d

输入向量

min
Vector3d

最小向量

max
Vector3d

最大向量

result
Vector3d

固定向量

适用于