Catalano.Math.Geometry
Class Line
- java.lang.Object
-
- Catalano.Math.Geometry.Line
-
public class Line extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description Line(float slope, float intercept)Line(IntPoint start, IntPoint end)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description floatDistanceToPoint(IntPoint point)static LineFromPoints(IntPoint p1, IntPoint p2)static LineFromPointTheta(IntPoint p, float theta)static LineFromRTheta(float radius, float theta)static LineFromSlopeIntercept(float slope, float intercept)floatGetAngleBetweenLines(Line secondLine)floatgetIntercept()floatgetSlope()booleanisHorizontal()booleanisVertical()
-
-
-
Method Detail
-
isVertical
public boolean isVertical()
-
isHorizontal
public boolean isHorizontal()
-
getSlope
public float getSlope()
-
getIntercept
public float getIntercept()
-
FromSlopeIntercept
public static Line FromSlopeIntercept(float slope, float intercept)
-
FromRTheta
public static Line FromRTheta(float radius, float theta)
-
GetAngleBetweenLines
public float GetAngleBetweenLines(Line secondLine)
-
DistanceToPoint
public float DistanceToPoint(IntPoint point)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG