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