# struct geom::Triangle2

Definition of a 2 dimensional triangle.

    #include <GeometryStructures.h>

    struct Triangle2: public geom::TTriangle {
        // construction

        Triangle2();
        Triangle2(const glm::vec2& p0, const glm::vec2& p1, const glm::vec2& p2);
    };

## Inherited Members

    public:
        // typedefs

        typedef glm::vec<D, float> Vec;

        // fields

        Vec points[3];

        // methods

        Vec& operator[](size_t point_id);
        const Vec& operator[](size_t point_id) const;
        Vec GetCentroid() const;