Vector3IntExt.Clamp Method
Clamps the vector components between min and max values.
Namespace: UltimateXR.Extensions.Unity.Math
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static Vector3Int Clamp(
this in Vector3Int self,
in Vector3Int min,
in Vector3Int max
)
Parameters
- self
- Type: Vector3Int
Input vector whose values to clamp - min
- Type: Vector3Int
Minimum component values - max
- Type: Vector3Int
Maximum component values
Return Value
Type: Vector3Int
Clamped vector
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also
Reference
Vector3IntExt Class
UltimateXR.Extensions.Unity.Math Namespace