共用方式為


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

固定向量

適用於