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

Vector4D.Clamp Static Method

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

Restricts a vector between a min and max value.

Parameters

[Vector4D] value1

The source vector.

[Vector4D] min

The minimum value.

[Vector4D] max

The maximum value.

Returns

Vector4D

The restricted vector.