Vector3Extensions.Wrapped

Extension Method in Vector3Extensions

Declaration

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

Description

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

Parameters

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

Returns

Vector3A new wrapped vector.