private short GetBarArmount(Point3d spanPoint1, Point3d spanPoint2, double spanStep, bool isVertical) { if (isVertical) { return (short)((spanPoint2.DistanceYAbs(spanPoint1) / spanStep + 1)); } else { return (short)((spanPoint2.DistanceXAbs(spanPoint1) / spanStep + 1)); } }
private double GetUserSpanDistance(Point3d spanPoint1, Point3d spanPoint2, bool isVertical) { if (isVertical) { return spanPoint2.DistanceYAbs(spanPoint1); } else { return spanPoint2.DistanceXAbs(spanPoint1); } }