类 VerticalStraightLine
- java.lang.Object
-
- cn.mcres.gyhhy.MXLib.math.graph.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(double x, double z)
-
方法概要
修饰符和类型 方法 说明 double
distance(Point p)
Get the distance between thie point and this object.
获取提供的点与该对象的距离.Point
getPoint(double x)
Point
getPoint(int x)
Point
getRandPoint()
Get a random point from this line.
获取直线上的随机一个点double
getX()
double
getZ()
ABCStraightLine
toABCStraightLine()
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 cn.mcres.gyhhy.MXLib.math.graph.StraightLine
distance, getPointSet
-
-
-
-
方法详细资料
-
getX
public double getX()
-
getZ
public double getZ()
-
distance
public double distance(Point p)
从接口复制的说明:Distancer
Get the distance between thie point and this object.
获取提供的点与该对象的距离.
-
getRandPoint
public Point getRandPoint()
从接口复制的说明:StraightLine
Get a random point from this line.
获取直线上的随机一个点- 指定者:
getRandPoint
在接口中StraightLine
- 返回:
- Random point
-
getPoint
public Point getPoint(int x)
- 指定者:
getPoint
在接口中StraightLine
-
getPoint
public Point getPoint(double x)
- 指定者:
getPoint
在接口中StraightLine
-
toABCStraightLine
public ABCStraightLine toABCStraightLine()
- 指定者:
toABCStraightLine
在接口中StraightLine
-
-