类 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)
-
方法概要
修饰符和类型 方法 说明 doubledistance(Point o)Get the distance between thie point and this object.
获取提供的点与该对象的距离.static doubleDistanceOfPointToLine(Point a, Point b, Point s)PointgetPoint(double x)Point[]getPointSet()Return two points that form a line.
返回构造直线的两个点static voidmain(String[] args)ABCStraightLinetoABCStraightLine()-
从类继承的方法 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()
从接口复制的说明:StraightLineReturn two points that form a line.
返回构造直线的两个点- 指定者:
getPointSet在接口中StraightLine- 返回:
- a Point array of length 2
-
distance
public double distance(Point o)
从接口复制的说明:DistancerGet the distance between thie point and this object.
获取提供的点与该对象的距离.
-
toABCStraightLine
public ABCStraightLine toABCStraightLine()
- 指定者:
toABCStraightLine在接口中StraightLine
-
-