Interface Triangle

  • All Superinterfaces:
    GenericSurface, Polygon, SurfacePatch

    @UML(identifier="GM_Triangle",
         specification=ISO_19107)
    public interface Triangle
    extends Polygon
    A planar polygon defined by 3 corners. That is, a triangle would be the result of a constructor of the form: Polygon(LineString({P1, P2, P3, P1})) where P₁, P₂, and P₃ 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 c₁, c₂, and c₃ such that c₁ + c₂ + c₃ = 1.0. Then, each point P in the triangle can be expressed for some set of barycentric coordinates as:

    P = c₁P₁ + c₂P₂ + c₃P₃
    Since:
    GeoAPI 2.0