cangine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
cangine::Triangle Struct Reference

A triangle defined by three vertices. More...

#include <triangle.hpp>

Public Member Functions

constexpr Triangle (const Vertex &v1, const Vertex &v2, const Vertex &v3) noexcept
 Constructs a triangle from three vertices.
 

Public Attributes

std::array< Vertex, 3 > vertices
 The triangle's three corner vertices.
 

Detailed Description

A triangle defined by three vertices.

Constructor & Destructor Documentation

◆ Triangle()

constexpr cangine::Triangle::Triangle ( const Vertex &  v1,
const Vertex &  v2,
const Vertex &  v3 
)
inlineconstexprnoexcept

Constructs a triangle from three vertices.

Parameters
v1First vertex.
v2Second vertex.
v3Third vertex.

Member Data Documentation

◆ vertices

std::array<Vertex, 3> cangine::Triangle::vertices

The triangle's three corner vertices.


The documentation for this struct was generated from the following file: