示例#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));
 }
示例#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));
        }
示例#3
0
文件: Matrix3F.cs 项目: 15831944/WW
 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)));
 }
示例#4
0
文件: Vector3F.cs 项目: 15831944/WW
 public Vector3F(Point3F from)
 {
     this.X = from.X;
     this.Y = from.Y;
     this.Z = from.Z;
 }
示例#5
0
文件: Vector4F.cs 项目: 15831944/WW
 public static Vector4F FromWeightedEuclidean(Point3F p, float w)
 {
     return(new Vector4F(p.X * w, p.Y * w, p.Z * w, w));
 }