예제 #1
0
        /// <summary>
        /// Squared eclidian distance to given point
        /// </summary>
        public double DistanceSquaredTo(Point4Dstep 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 Speed4Dstep With(this Point4Dstep point, Speed speedUV, Speed speedXY)
 {
     return(new Speed4Dstep(point, speedUV, speedXY));
 }
예제 #3
0
 public Speed4Dstep(Point4Dstep point, Speed speedUV, Speed speedXY)
 {
     Point   = point;
     SpeedUV = speedUV;
     SpeedXY = speedXY;
 }