类 ABCStraightLine
- java.lang.Object
-
- cn.mcres.gyhhy.MXLib.math.graph.ABCStraightLine
-
- 所有已实现的接口:
Distancer
,StraightLine
public class ABCStraightLine extends Object implements StraightLine
Ax + By + C = 0
-
-
构造器概要
构造器 构造器 说明 ABCStraightLine(double A, double B, double C)
-
方法概要
修饰符和类型 方法 说明 static double
distance(double A, double B, double C, Point p)
直线方程中
A = y2 - y1,
B = x1 - x2,
C = (x2 * y1) - (x1 * y2)
Copy from https://blog.csdn.net/ffgcc/article/details/79941512double
distance(Distancer d)
double
distance(Point o)
Get the distance between thie point and this object.
获取提供的点与该对象的距离.double
getA()
double
getB()
double
getC()
Point
getPoint(double x)
ABCStraightLine
toABCStraightLine()
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 cn.mcres.gyhhy.MXLib.math.graph.StraightLine
getPoint, getPointSet, getRandPoint
-
-
-
-
方法详细资料
-
distance
public static double distance(double A, double B, double C, Point p)
直线方程中
A = y2 - y1,
B = x1 - x2,
C = (x2 * y1) - (x1 * y2)
Copy from https://blog.csdn.net/ffgcc/article/details/79941512
-
getA
public double getA()
-
getB
public double getB()
-
getC
public double getC()
-
getPoint
public Point getPoint(double x)
- 指定者:
getPoint
在接口中StraightLine
-
distance
public double distance(Point o)
从接口复制的说明:Distancer
Get the distance between thie point and this object.
获取提供的点与该对象的距离.
-
distance
public double distance(Distancer d)
- 指定者:
distance
在接口中Distancer
- 指定者:
distance
在接口中StraightLine
-
toABCStraightLine
public ABCStraightLine toABCStraightLine()
- 指定者:
toABCStraightLine
在接口中StraightLine
-
-