Untitled Game engine no.5  1.0
Public Member Functions | Public Attributes | List of all members
Engine::Simplex Struct Reference

Storage wrapper for support points. More...

#include <Components.hpp>

Public Member Functions

Simplexoperator= (std::initializer_list< Support > ilist)
 
Supportoperator[] (const int &i)
 
void operator+= (const Support &support)
 
void add (glm::vec3 p, glm::vec3 a, glm::vec3 b)
 
void set (int i, glm::vec3 p, glm::vec3 a, glm::vec3 b)
 
void push (Support p)
 
void push (glm::vec3 p, glm::vec3 a, glm::vec3 b)
 

Public Attributes

std::vector< Supportsupports = std::vector<Support>(SIMPLEX_COUNT)
 
size_t index = 0
 support point list (max 4)
 

Detailed Description

Storage wrapper for support points.

A simplex is a point/ line/ triangle or tetrahedron defined by support points. Basically a vector wrapper.


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