@UML(identifier="GM_Triangle", specification=ISO_19107) public interface Triangle extends Polygon
Polygon(LineString({P1, P2, P3, P1}))
where P1,
P2, and P3 are three positions.
Triangles have no holes. Triangle shall be used to construct triangulated surfaces.
Note: The points in a triangle can be located in terms of their corner points by defining a set of barycentric coordinates, three nonnegative numbers c1, c2, and c3 such that
c1 + c2 + c3 = 1.0.
Then, each point P in the triangle can be expressed for some set of barycentric coordinates as:
P = c1P1 + c2P2 + c3P3
Modifier and Type | Method and Description |
---|---|
List<Position> |
getCorners()
Returns the triangle corner.
|
TriangulatedSurface |
getSurface()
Returns the patch which own this surface patch.
|
getBoundary, getSpanningSurface
getInterpolation, getNumDerivativesOnBoundary
getArea, getPerimeter, getUpNormal
@UML(identifier="corners", obligation=MANDATORY, specification=ISO_19107) List<Position> getCorners()
@UML(identifier="surface", obligation=MANDATORY, specification=ISO_19107) TriangulatedSurface getSurface()
getSurface
in interface Polygon
getSurface
in interface SurfacePatch
null
if the association is not available
or not implemented that way.Surface.getPatches()
,
CurveSegment.getCurve()
Copyright © 1996–2019 Geotools. All rights reserved.