类 PointStraightLine
- java.lang.Object
-
- cn.mcres.gyhhy.MXLib.math.graph.PointStraightLine
-
- 所有已实现的接口:
Distancer
,StraightLine
public class PointStraightLine extends Object implements StraightLine
-
-
构造器概要
构造器 构造器 说明 PointStraightLine(Point a, Point b)
-
方法概要
修饰符和类型 方法 说明 double
distance(Point o)
Get the distance between thie point and this object.
获取提供的点与该对象的距离.static double
DistanceOfPointToLine(Point a, Point b, Point s)
Point
getPoint(double x)
Point[]
getPointSet()
Return two points that form a line.
返回构造直线的两个点static void
main(String[] args)
ABCStraightLine
toABCStraightLine()
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 cn.mcres.gyhhy.MXLib.math.graph.StraightLine
distance, getPoint, getRandPoint
-
-
-
-
方法详细资料
-
main
public static void main(String[] args)
-
DistanceOfPointToLine
public static double DistanceOfPointToLine(Point a, Point b, Point s)
- 参数:
a
- The Point A from Straight Lineb
- The Point B from Straight Lines
- The Point for distance- 返回:
- The Disance
-
getPoint
public Point getPoint(double x)
- 指定者:
getPoint
在接口中StraightLine
-
getPointSet
public Point[] getPointSet()
从接口复制的说明:StraightLine
Return two points that form a line.
返回构造直线的两个点- 指定者:
getPointSet
在接口中StraightLine
- 返回:
- a Point array of length 2
-
distance
public double distance(Point o)
从接口复制的说明:Distancer
Get the distance between thie point and this object.
获取提供的点与该对象的距离.
-
toABCStraightLine
public ABCStraightLine toABCStraightLine()
- 指定者:
toABCStraightLine
在接口中StraightLine
-
-