public class TriMarkers
extends org.locationtech.jts.geom.Triangle
| Constructor and Description |
|---|
TriMarkers()
Default constructor
|
TriMarkers(org.locationtech.jts.geom.Coordinate p0,
org.locationtech.jts.geom.Coordinate p1,
org.locationtech.jts.geom.Coordinate p2,
double m1,
double m2,
double m3)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static org.locationtech.jts.math.Vector3D |
getNormalVector(org.locationtech.jts.geom.Triangle t)
Get the normal vector to this triangle, of length 1.
|
static double |
getSlopeInPercent(org.locationtech.jts.math.Vector3D normal,
double epsilon) |
static org.locationtech.jts.math.Vector3D |
getSteepestVector(org.locationtech.jts.math.Vector3D normal,
double epsilon)
Get the vector with the highest down slope in the plan.
|
static boolean |
intersects(org.locationtech.jts.geom.Coordinate p,
org.locationtech.jts.geom.Triangle t)
Test if a coordinate intersects the triangle
http://www.blackpawn.com/texts/pointinpoly/default.html |
String |
toString() |
angleBisector, area, area, area3D, area3D, centroid, centroid, circumcentre, circumcentre, inCentre, inCentre, interpolateZ, interpolateZ, isAcute, isAcute, longestSideLength, longestSideLength, perpendicularBisector, signedArea, signedAreapublic TriMarkers()
public TriMarkers(org.locationtech.jts.geom.Coordinate p0,
org.locationtech.jts.geom.Coordinate p1,
org.locationtech.jts.geom.Coordinate p2,
double m1,
double m2,
double m3)
p0 - First vertexp1 - Second vertexp2 - Third vertexm1 - First vertex attributem2 - Second vertex attributem3 - Third vertex attributepublic static org.locationtech.jts.math.Vector3D getNormalVector(org.locationtech.jts.geom.Triangle t)
throws IllegalArgumentException
t - input triangleIllegalArgumentExceptionpublic static org.locationtech.jts.math.Vector3D getSteepestVector(org.locationtech.jts.math.Vector3D normal,
double epsilon)
normal - epsilon - public static double getSlopeInPercent(org.locationtech.jts.math.Vector3D normal,
double epsilon)
normal - Plane normalepsilon - Epsilon value ex:1e-12public static boolean intersects(org.locationtech.jts.geom.Coordinate p,
org.locationtech.jts.geom.Triangle t)
http://www.blackpawn.com/texts/pointinpoly/default.htmlp - Coordinate of the pointt - input triangleCopyright © 2019 CNRS. All rights reserved.