类 VerticalStraightLine

  • 所有已实现的接口:
    Distancer, StraightLine

    public class VerticalStraightLine
    extends Object
    implements StraightLine
    Vertical Straight Line 竖直的直线
    This straight line NO has Y value 这条直线不存在y值
    (This straight ingore Y-axis 这条直线忽略了Y值)
    The point obtained by this line is only the Y value is different, X/Z is the same
    通过这条直线获取的点只有 Y值 是不一样的, X/Z 是相同的
    • 构造器详细资料

      • VerticalStraightLine

        public VerticalStraightLine​(double x,
                                    double z)
    • 方法详细资料

      • getX

        public double getX()
      • getZ

        public double getZ()
      • distance

        public double distance​(Point p)
        从接口复制的说明: Distancer
        Get the distance between thie point and this object.
        获取提供的点与该对象的距离.
        指定者:
        distance 在接口中 Distancer
        参数:
        p - The point
        返回:
        The distance
      • getRandPoint

        public Point getRandPoint()
        从接口复制的说明: StraightLine
        Get a random point from this line.
        获取直线上的随机一个点
        指定者:
        getRandPoint 在接口中 StraightLine
        返回:
        Random point