HCoordinate class
Represents a homogeneous coordinate in a 2-D coordinate space. In JTS {@link HCoordinate}s are used as a clean way of computing intersections between line segments.
@author David Skea @version 1.7
Constructors
- HCoordinate()
- HCoordinate.c(Coordinate p)
- HCoordinate.from2c(Coordinate p1, Coordinate p2)
- Constructs a homogeneous coordinate which is the intersection of the lines define by the homogenous coordinates represented by two {@link Coordinate}s.
- HCoordinate.from2Hc(HCoordinate p1, HCoordinate p2)
- HCoordinate.from4c(Coordinate p1, Coordinate p2, Coordinate q1, Coordinate q2)
- HCoordinate.xy(double _x, double _y)
- HCoordinate.xyw(double _x, double _y, double _w)
Properties
Methods
-
getCoordinate(
) → Coordinate -
getX(
) → double -
getY(
) → double -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
intersection(
Coordinate p1, Coordinate p2, Coordinate q1, Coordinate q2) → Coordinate - Computes the (approximate) intersection point between two line segments using homogeneous coordinates.