Exemplo n.º 1
0
 public Vector4F TransformTo4D(Point3F point)
 {
     return(new Vector4F((float)((double)this.M00 * (double)point.X + (double)this.M01 * (double)point.Y + (double)this.M02 * (double)point.Z) + this.M03, (float)((double)this.M10 * (double)point.X + (double)this.M11 * (double)point.Y + (double)this.M12 * (double)point.Z) + this.M13, (float)((double)this.M20 * (double)point.X + (double)this.M21 * (double)point.Y + (double)this.M22 * (double)point.Z) + this.M23, (float)((double)this.M30 * (double)point.X + (double)this.M31 * (double)point.Y + (double)this.M32 * (double)point.Z) + this.M33));
 }
Exemplo n.º 2
0
        public Point2F TransformTo2D(Point3F point)
        {
            float num = (float)(1.0 / ((double)this.M30 * (double)point.X + (double)this.M31 * (double)point.Y + (double)this.M32 * (double)point.Z + (double)this.M33));

            return(new Point2F(((float)((double)this.M00 * (double)point.X + (double)this.M01 * (double)point.Y + (double)this.M02 * (double)point.Z) + this.M03) * num, ((float)((double)this.M10 * (double)point.X + (double)this.M11 * (double)point.Y + (double)this.M12 * (double)point.Z) + this.M13) * num));
        }
Exemplo n.º 3
0
 public Point2F TransformTo2D(Point3F point)
 {
     return(new Point2F((float)((double)this.M00 * (double)point.X + (double)this.M01 * (double)point.Y + (double)this.M02 * (double)point.Z), (float)((double)this.M10 * (double)point.X + (double)this.M11 * (double)point.Y + (double)this.M12 * (double)point.Z)));
 }
Exemplo n.º 4
0
 public Vector3F(Point3F from)
 {
     this.X = from.X;
     this.Y = from.Y;
     this.Z = from.Z;
 }
Exemplo n.º 5
0
 public static Vector4F FromWeightedEuclidean(Point3F p, float w)
 {
     return(new Vector4F(p.X * w, p.Y * w, p.Z * w, w));
 }