Vector2IntExt.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 Vector2Int Clamp(
this in Vector2Int self,
in Vector2Int min,
in Vector2Int max
)
Parameters
- self
- Type: Vector2Int
Input vector whose values to clamp - min
- Type: Vector2Int
Minimum component values - max
- Type: Vector2Int
Maximum component values
Return Value
Type: Vector2Int
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
Vector2IntExt Class
UltimateXR.Extensions.Unity.Math Namespace