示例#1
0
        public static Vector3 Clamp(Vector3 value, Vector3 min, Vector3 max)
        {
            var result = MonoGameVector3.Clamp(value.MonoGameVector, min.MonoGameVector, max.MonoGameVector);

            return(new Vector3(result));
        }
 public static Vector3 Clamp(Vector3 val, Vector3 min, Vector3 max)
 {
     return(new Vector3(Vector.Clamp(val, min, max)));
 }