Vector2.Clamp Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Clamp(Vector2, Vector2, Vector2) | |
Clamp(Vector2, Vector2, Vector2, Vector2) |
Clamp a vector to the given minimum and maximum vectors |
Clamp(Vector2, Vector2, Vector2)
Clamp(Vector2, Vector2, Vector2, Vector2)
Clamp a vector to the given minimum and maximum vectors
public static void Clamp (ref OpenTK.Vector2 vec, ref OpenTK.Vector2 min, ref OpenTK.Vector2 max, out OpenTK.Vector2 result);
static member Clamp : * * * -> unit
Parameters
- vec
- Vector2
Input vector
- min
- Vector2
Minimum vector
- max
- Vector2
Maximum vector
- result
- Vector2
The clamped vector