public class Line
extends java.lang.Object
| Constructor and Description |
|---|
Line(float slope,
float intercept) |
Line(IntPoint start,
IntPoint end) |
| Modifier and Type | Method and Description |
|---|---|
float |
DistanceToPoint(IntPoint point) |
static Line |
FromPoints(IntPoint p1,
IntPoint p2) |
static Line |
FromPointTheta(IntPoint p,
float theta) |
static Line |
FromRTheta(float radius,
float theta) |
static Line |
FromSlopeIntercept(float slope,
float intercept) |
float |
GetAngleBetweenLines(Line secondLine) |
float |
getIntercept() |
float |
getSlope() |
boolean |
isHorizontal() |
boolean |
isVertical() |
public boolean isVertical()
public boolean isHorizontal()
public float getSlope()
public float getIntercept()
public static Line FromSlopeIntercept(float slope, float intercept)
public static Line FromRTheta(float radius, float theta)
public float GetAngleBetweenLines(Line secondLine)
public float DistanceToPoint(IntPoint point)