# struct geom::Triangle3

## Overview

Definition of a 3 dimensional triangle. More…

    #include <GeometryStructures.h>

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

        Triangle3();
        Triangle3(const glm::vec3& p0, const glm::vec3& p1, const glm::vec3& p2);

        // methods

        glm::vec3 GetNormal() const;
    };

### 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;

## Detailed Documentation

Definition of a 3 dimensional triangle.

### Methods

    glm::vec3 GetNormal() const

Calculates a normal vector of a triangle using counter-clockwise order.