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