示例#1
0
        /// <summary>
        /// Squared euclidian distance to given point
        /// </summary>
        public double DistanceSquaredTo(Point4Dmm point)
        {
            var diffU = U - point.U;
            var diffV = V - point.V;
            var diffX = X - point.X;
            var diffY = Y - point.Y;

            return(1.0 * diffU * diffU + 1.0 * diffV * diffV + 1.0 * diffX * diffX + 1.0 * diffY * diffY);
        }
示例#2
0
 public static Point4Dstep As4Dstep(this Point4Dmm point)
 {
     return(new Point4Dstep(mmToStep(point.U), mmToStep(point.V), mmToStep(point.X), mmToStep(point.Y)));
 }