/// <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); }
public static Speed4Dstep With(this Point4Dstep point, Speed speedUV, Speed speedXY) { return(new Speed4Dstep(point, speedUV, speedXY)); }
public Speed4Dstep(Point4Dstep point, Speed speedUV, Speed speedXY) { Point = point; SpeedUV = speedUV; SpeedXY = speedXY; }