Vector4Extensions.Clamped

Extension Method in Vector4Extensions

Declaration

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

Description

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

Parameters

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

Returns

Vector4A new clamped vector.