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

Vector2D.Clamp Static Method

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

Restricts a vector between a min and max value.

Parameters

[Vector2D] value1

The source vector.

[Vector2D] min

The minimum value.

[Vector2D] max

The maximum value.

Returns

Vector2D

The clamped vector.