TDME2 1.9.121
Public Member Functions | Private Attributes | List of all members
Triangle Class Referencefinal

Triangle entity, this is not directly connectable with physics engine. More...

#include <tdme/engine/primitives/Triangle.h>

Collaboration diagram for Triangle:
Collaboration graph

Public Member Functions

 Triangle ()
 Public constructor. More...
 
 Triangle (const Vector3 &vertex0, const Vector3 &vertex1, const Vector3 &vertex2)
 Public constructor. More...
 
vector< Vector3 > & getVertices ()
 
void computeClosestPointOnBoundingVolume (const Vector3 &point, Vector3 &closestPoint) const
 Compute closest point on bounding volume. More...
 

Private Attributes

vector< Vector3vertices
 

Detailed Description

Triangle entity, this is not directly connectable with physics engine.

Author
Andreas Drewke
Version
$Id$

Definition at line 18 of file Triangle.h.

Constructor & Destructor Documentation

◆ Triangle() [1/2]

Triangle ( )

Public constructor.

Definition at line 12 of file Triangle.cpp.

◆ Triangle() [2/2]

Triangle ( const Vector3 vertex0,
const Vector3 vertex1,
const Vector3 vertex2 
)

Public constructor.

Parameters
vertex0vertex 0
vertex1vertex 1
vertex2vertex 2

Definition at line 17 of file Triangle.cpp.

Member Function Documentation

◆ computeClosestPointOnBoundingVolume()

void computeClosestPointOnBoundingVolume ( const Vector3 point,
Vector3 closestPoint 
) const

Compute closest point on bounding volume.

Parameters
pointpoint
closestPointclosest point

Definition at line 25 of file Triangle.cpp.

◆ getVertices()

vector< Vector3 > & getVertices ( )
inline
Returns
triangle vertices

Definition at line 37 of file Triangle.h.

Member Data Documentation

◆ vertices

vector<Vector3> vertices
private

Definition at line 49 of file Triangle.h.


The documentation for this class was generated from the following files: