Esempio n. 1
0
 public static Point4F Subtract(Point4F point1, Point4F point2)
 {
     return(new Point4F(point1._x - point2._x,
                        point1._y - point2._y,
                        point1._z - point2._z,
                        point1._w - point2._w));
 }
Esempio n. 2
0
 public static bool Equals(Point4F point1, Point4F point2)
 {
     return(point1.X.Equals(point2.X) &&
            point1.Y.Equals(point2.Y) &&
            point1.Z.Equals(point2.Z) &&
            point1.W.Equals(point2.W));
 }
Esempio n. 3
0
 public static Point4F Add(Point4F point1, Point4F point2)
 {
     return(new Point4F(point1._x + point2._x,
                        point1._y + point2._y,
                        point1._z + point2._z,
                        point1._w + point2._w));
 }
Esempio n. 4
0
        public override bool Equals(object o)
        {
            if ((null == o) || !(o is Point4F))
            {
                return(false);
            }

            Point4F value = (Point4F)o;

            return(Point4F.Equals(this, value));
        }
Esempio n. 5
0
        internal void MultiplyPoint(ref Point4F point)
        {
            if (IsDistinguishedIdentity)
            {
                return;
            }

            Float x = point.X;
            Float y = point.Y;
            Float z = point.Z;
            Float w = point.W;

            point.X = x * _m11 + y * _m21 + z * _m31 + w * _offsetX;
            point.Y = x * _m12 + y * _m22 + z * _m32 + w * _offsetY;
            point.Z = x * _m13 + y * _m23 + z * _m33 + w * _offsetZ;
            point.W = x * _m14 + y * _m24 + z * _m34 + w * _m44;
        }
Esempio n. 6
0
 public static Point4F Multiply(Point4F point, Matrix3F matrix)
 {
     return(matrix.Transform(point));
 }
Esempio n. 7
0
 public bool Equals(Point4F value)
 {
     return(Point4F.Equals(this, value));
 }
Esempio n. 8
0
 public Point4F Transform(Point4F point)
 {
     MultiplyPoint(ref point);
     return(point);
 }