public class TriangleDT
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
com.vividsolutions.jts.geom.Coordinate |
A |
com.vividsolutions.jts.geom.Coordinate |
B |
com.vividsolutions.jts.geom.Coordinate |
C |
boolean |
haveBreakLine |
int |
typeBreakLine |
| Constructor and Description |
|---|
TriangleDT()
implicit Constructor
|
TriangleDT(com.vividsolutions.jts.geom.Coordinate[] coords) |
TriangleDT(com.vividsolutions.jts.geom.Coordinate A,
com.vividsolutions.jts.geom.Coordinate B,
com.vividsolutions.jts.geom.Coordinate C)
Constructor
|
TriangleDT(TriangleDT T)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
compare(TriangleDT T)
The method which comparing two triangles, if the triangles have same coordinates of vertexes
|
char |
compareReturnIndex(com.vividsolutions.jts.geom.Coordinate P)
The method which compare points
|
boolean |
contains(com.vividsolutions.jts.geom.Coordinate P)
The method which testing, if the triangle contains the point
|
boolean |
containsLine(com.vividsolutions.jts.geom.LineString newL)
The method which testing, if the line intersect the triangle
|
protected boolean |
containsOneSamePointWith(TriangleDT T)
The method which testing two triangles, if the triangles have one same point
|
boolean |
containsPointAsVertex(com.vividsolutions.jts.geom.Coordinate P)
The method which testing, if the triangle contains the point
|
boolean |
containsTwoPoints(com.vividsolutions.jts.geom.Coordinate P1,
com.vividsolutions.jts.geom.Coordinate P2)
The method which testing two triangles, if the triangles have two same points
|
protected com.vividsolutions.jts.geom.Coordinate |
getCentroid() |
com.vividsolutions.jts.geom.Envelope |
getEnvelope()
Protected method for getting envelope of triangle
|
protected boolean |
isTriangle()
The method which testing triangle, if the triangles is'nt line
|
void |
normalizePolygon() |
public com.vividsolutions.jts.geom.Coordinate A
public com.vividsolutions.jts.geom.Coordinate B
public com.vividsolutions.jts.geom.Coordinate C
public boolean haveBreakLine
public int typeBreakLine
public TriangleDT()
public TriangleDT(com.vividsolutions.jts.geom.Coordinate[] coords)
public TriangleDT(com.vividsolutions.jts.geom.Coordinate A,
com.vividsolutions.jts.geom.Coordinate B,
com.vividsolutions.jts.geom.Coordinate C)
A - -
first vertexB - -
second vertexC - -
third vertexpublic TriangleDT(TriangleDT T)
T - -
triangle will be clonedpublic boolean compare(TriangleDT T)
T - -
triangle to testpublic char compareReturnIndex(com.vividsolutions.jts.geom.Coordinate P)
P - -
points for comparingpublic boolean contains(com.vividsolutions.jts.geom.Coordinate P)
P - -
point which will be testedpublic boolean containsLine(com.vividsolutions.jts.geom.LineString newL)
newL - -
Geometry of lineprotected boolean containsOneSamePointWith(TriangleDT T)
T - -
triangle to testpublic boolean containsPointAsVertex(com.vividsolutions.jts.geom.Coordinate P)
P - -
point which will be testedpublic boolean containsTwoPoints(com.vividsolutions.jts.geom.Coordinate P1,
com.vividsolutions.jts.geom.Coordinate P2)
P1 - -
point for testingP2 - -
point for testingprotected com.vividsolutions.jts.geom.Coordinate getCentroid()
public com.vividsolutions.jts.geom.Envelope getEnvelope()
protected boolean isTriangle()
public void normalizePolygon()
Copyright © 2014 gvSIG Association. All Rights Reserved.