Exemple #1
0
 public Vector4D Clamp(Vector4D aMin, Vector4D aMax)
 {
     return(new Vector4D(Op.Clamp(x, aMin.x, aMax.x), Op.Clamp(y, aMin.y, aMax.y), Op.Clamp(z, aMin.z, aMax.z), Op.Clamp(w, aMin.w, aMax.w)));
 }
Exemple #2
0
 public Vector2D Clamp(Vector2D aMin, Vector2D aMax)
 {
     return(new Vector2D(Op.Clamp(x, aMin.x, aMax.x), Op.Clamp(y, aMin.y, aMax.y)));
 }
Exemple #3
0
 public Vector3D Clamp(Vector3D aMin, Vector3D aMax)
 {
     return(new Vector3D(Op.Clamp(x, aMin.x, aMax.x), Op.Clamp(y, aMin.y, aMax.y), Op.Clamp(z, aMin.z, aMax.z)));
 }