Class dnx.geom.Line2
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.geom.Line2
java.lang.Object
|
+----dnx.geom.Line2
- public class Line2
- extends Object
two-dimensional line (i.e. infinite).
-
c
-
-
explicit_set
-
-
implicit_set
-
-
N
-
-
U
-
-
V
-
-
Line2()
- construct a line going nowhere.
-
Line2(Point2, Point2)
- construct a line going through two points.
-
getC()
-
-
getN()
-
-
getU()
-
-
getV()
-
-
intersection(Line2)
- Return the point of intersection between the two lines, or null
if the lines are parallel.
-
pointOnLineNearestOrigin()
- Return the point on this line that is nearest the origin.
-
pointOnLineNearestPoint(Point2)
- Return the point on this line that is nearest the specified point.
-
setExplicit(Vector2, Vector2)
- set the explicit representation of a line.
-
setImplicit(Vector2, float)
- set the implicit representation of a line.
-
toString()
-
N
protected Vector2 N
c
protected float c
U
protected Vector2 U
V
protected Vector2 V
implicit_set
protected boolean implicit_set
explicit_set
protected boolean explicit_set
Line2
public Line2()
- construct a line going nowhere.
Line2
public Line2(Point2 A,
Point2 B)
- construct a line going through two points.
getC
public final float getC()
getN
public final Vector2 getN()
getU
public final Vector2 getU()
getV
public final Vector2 getV()
setImplicit
public void setImplicit(Vector2 N,
float c)
- set the implicit representation of a line.
setExplicit
public void setExplicit(Vector2 U,
Vector2 V)
- set the explicit representation of a line.
pointOnLineNearestOrigin
public Point2 pointOnLineNearestOrigin()
- Return the point on this line that is nearest the origin.
pointOnLineNearestPoint
public Point2 pointOnLineNearestPoint(Point2 p)
- Return the point on this line that is nearest the specified point.
intersection
public Point2 intersection(Line2 m)
- Return the point of intersection between the two lines, or null
if the lines are parallel.
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index