Vector2d.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(Vector2d, Vector2d, Vector2d) | |
Clamp(Vector2d, Vector2d, Vector2d, Vector2d) |
Clamp a vector to the given minimum and maximum vectors |
Clamp(Vector2d, Vector2d, Vector2d)
Clamp(Vector2d, Vector2d, Vector2d, Vector2d)
Clamp a vector to the given minimum and maximum vectors
public static void Clamp (ref OpenTK.Vector2d vec, ref OpenTK.Vector2d min, ref OpenTK.Vector2d max, out OpenTK.Vector2d result);
static member Clamp : * * * -> unit
Parameters
- vec
- Vector2d
Input vector
- min
- Vector2d
Minimum vector
- max
- Vector2d
Maximum vector
- result
- Vector2d
The clamped vector