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