| java.lang.Object com.vividsolutions.jump.warp.Quadrilateral
Quadrilateral | public class Quadrilateral implements Cloneable(Code) | | A simple four-sided polygon.
|
Constructor Summary | |
public | Quadrilateral(Coordinate p1, Coordinate p2, Coordinate p3, Coordinate p4) Creates a Quadrilateral. |
Quadrilateral | public Quadrilateral(Coordinate p1, Coordinate p2, Coordinate p3, Coordinate p4)(Code) | | Creates a Quadrilateral.
Parameters: p1 - one vertex Parameters: p2 - another vertex Parameters: p3 - another vertex Parameters: p4 - another vertex |
getEnvelope | public Envelope getEnvelope()(Code) | | |
getP1 | public Coordinate getP1()(Code) | | Returns the first vertex.
the first vertex |
getP2 | public Coordinate getP2()(Code) | | Returns the second vertex.
the second vertex |
getP3 | public Coordinate getP3()(Code) | | Returns the third vertex.
the third vertex |
getP4 | public Coordinate getP4()(Code) | | Returns the fourth vertex.
the fourth vertex |
isConvex | public boolean isConvex()(Code) | | Returns whether this Quadrilateral is a convex polygon.
whether the diagonals intersect |
toPolygon | public Polygon toPolygon()(Code) | | Converts this Quadrilateral to a JTS Polygon.
a new JTS Polygon with one shell and no holes |
triangles | public List triangles()(Code) | | Creates two Triangles from this Quadrilateral.
two Triangles: P1-P2-P3 and P1-P4-P3 |
verticesOutside | public Collection verticesOutside(Collection vertices)(Code) | | Filters out points that lie inside this Quadrilateral
Parameters: vertices - points to check those points which lie outside this Quadrilateral |
|
|