Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
triangle Struct Reference

triangle interface does not inherit from vec because 3 members (the 3 vertices) are required to describe a triangle More...

#include <geom.hpp>

Public Member Functions

 triangle (const vec &a, const vec &b, const vec &c)
 
 triangle ()
 
triangleadd (const vec &o)
 
trianglesub (const vec &o)
 
bool operator== (const triangle &t) const
 

Public Attributes

vec a
 
vec b
 
vec c
 

Detailed Description

triangle interface does not inherit from vec because 3 members (the 3 vertices) are required to describe a triangle

Constructor & Destructor Documentation

triangle::triangle ( const vec a,
const vec b,
const vec c 
)
inline
triangle::triangle ( )
inline

Member Function Documentation

triangle& triangle::add ( const vec o)
inline

References a, vec::add(), b, and c.

bool triangle::operator== ( const triangle t) const
inline

References a, b, and c.

triangle& triangle::sub ( const vec o)
inline

References a, b, c, and vec::sub().

Member Data Documentation

vec triangle::a

Referenced by add(), operator==(), and sub().

vec triangle::b

Referenced by add(), operator==(), and sub().

vec triangle::c

Referenced by add(), operator==(), and sub().


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