Esempio n. 1
0
        public static Vector3F8 Min(Vector3F8 v1, Vector3F8 v2)
        {
            float minX = Math.Min(v1.X, v2.X);
            float minY = Math.Min(v1.Y, v2.Y);
            float minZ = Math.Min(v1.Z, v2.Z);

            return(new Vector3F8(minX, minY, minZ));
        }
Esempio n. 2
0
        public override bool Equals(object obj)
        {
            if (obj != null && obj.GetType() != typeof(Vector3F8) && obj.GetType() != typeof(Vector3))
            {
                return(false);
            }

            if (obj.GetType() == typeof(Vector3))
            {
                Vector3 other = (Vector3)obj;

                return((float)_X == other.X && (float)_Y == other.Y && (float)_Z == other.Z);
            }

            // it's another Vector3F8
            Vector3F8 another = (Vector3F8)obj;

            return(this == another);
        }