public class TriMarkers
extends com.vividsolutions.jts.geom.Triangle
| Constructor and Description |
|---|
TriMarkers()
Default constructor
|
TriMarkers(com.vividsolutions.jts.geom.Coordinate p0,
com.vividsolutions.jts.geom.Coordinate p1,
com.vividsolutions.jts.geom.Coordinate p2,
double m1,
double m2,
double m3)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static com.vividsolutions.jts.math.Vector3D |
getNormalVector(com.vividsolutions.jts.geom.Triangle t)
Get the normal vector to this triangle, of length 1.
|
static double |
getSlopeInPercent(com.vividsolutions.jts.math.Vector3D normal,
double epsilon) |
static com.vividsolutions.jts.math.Vector3D |
getSteepestVector(com.vividsolutions.jts.math.Vector3D normal,
double epsilon)
Get the vector with the highest down slope in the plan.
|
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(com.vividsolutions.jts.geom.Coordinate p0,
com.vividsolutions.jts.geom.Coordinate p1,
com.vividsolutions.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 com.vividsolutions.jts.math.Vector3D getNormalVector(com.vividsolutions.jts.geom.Triangle t)
throws IllegalArgumentException
t - input triangleIllegalArgumentExceptionpublic static com.vividsolutions.jts.math.Vector3D getSteepestVector(com.vividsolutions.jts.math.Vector3D normal,
double epsilon)
normal - epsilon - public static double getSlopeInPercent(com.vividsolutions.jts.math.Vector3D normal,
double epsilon)
normal - Plane normalepsilon - Epsilon value ex:1e-12Copyright © 2017 CNRS. All rights reserved.