Mac Guides | Samples

MonoMac.OpenGL.Vector3d.Clamp Method

Clamp a vector to the given minimum and maximum vectors

Syntax

public static Vector3d Clamp (Vector3d vec, Vector3d min, Vector3d max)

Parameters

vec
Input vector
min
Minimum vector
max
Maximum vector

Returns

The clamped vector

Requirements

Namespace: MonoMac.OpenGL
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0