Vector3Extensions.Clamped

Extension Method in Vector3Extensions

Declaration

public static Vector3 Clamped(this Vector3 vector, Vector3 min, Vector3 max)

Description

Clamps the vector to the range [min..max].

Parameters

vectorThe vector to clamp.
minThe minimum value.
maxThe maximum value.

Returns

Vector3A new clamped vector.