Namespace: Rx.Net – Class: Vector3D – Assembly: Rx.Net

Vector3D.Clamp Static Method

C#
public static Vector3D Clamp(Vector3D value1, Vector3D min, Vector3D max)

Restricts a vector between a min and max value.

Parameters

[Vector3D] value1

The source vector.

[Vector3D] min

The minimum value.

[Vector3D] max

The maximum value.

Returns

Vector3D

The restricted vector.