| java.lang.Object org.geotools.referencing.operation.builder.Polygon org.geotools.referencing.operation.builder.Quadrilateral
Quadrilateral | class Quadrilateral extends Polygon (Code) | | A simple four-sided polygon.
since: 2.4 version: $Id: Quadrilateral.java 28966 2008-01-27 17:36:43Z acuster $ author: Jan Jezek |
Field Summary | |
public DirectPosition | p0 The first vertex. | public DirectPosition | p1 The second vertex. | public DirectPosition | p2 | public DirectPosition | p3 |
Constructor Summary | |
public | Quadrilateral(DirectPosition p0, DirectPosition p1, DirectPosition p2, DirectPosition p3) Creates a Quadrilateral. |
Method Summary | |
public List | getTriangles() Splits the Quadrilateral into two triangles. | public boolean | isConvex() Test the Quadrilateral if it is a convex polygon. |
p0 | public DirectPosition p0(Code) | | The first vertex.
|
p1 | public DirectPosition p1(Code) | | The second vertex.
|
p2 | public DirectPosition p2(Code) | | The third vertex
|
p3 | public DirectPosition p3(Code) | | the fourth vetrex
|
Quadrilateral | public Quadrilateral(DirectPosition p0, DirectPosition p1, DirectPosition p2, DirectPosition p3)(Code) | | Creates a Quadrilateral.
Parameters: p0 - one vertex Parameters: p1 - another vertex Parameters: p2 - another vertex Parameters: p3 - another vertex |
getTriangles | public List getTriangles()(Code) | | Splits the Quadrilateral into two triangles.
two Triangles: p0-p1-p2 and p0-p3-p2 |
isConvex | public boolean isConvex()(Code) | | Test the Quadrilateral if it is a convex polygon.
whether the diagonals intersects |
|
|