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

#include <mpr.hpp>

Public Member Functions

 SolidCube (float x, float y, float z, int size)
 SolidCube (const vec &o, int size)
 SolidCube (const ivec &o, int size)
vec center () const
vec supportpoint (const vec &n) const

Public Attributes

vec o
int size

Constructor & Destructor Documentation

mpr::SolidCube::SolidCube ( float  x,
float  y,
float  z,
int  size 
mpr::SolidCube::SolidCube ( const vec o,
int  size 
mpr::SolidCube::SolidCube ( const ivec o,
int  size 

Member Function Documentation

vec mpr::SolidCube::center ( ) const

References vec::add(), and o.

vec mpr::SolidCube::supportpoint ( const vec n) const

References o, and size.

Member Data Documentation

vec mpr::SolidCube::o

Referenced by center(), and supportpoint().

int mpr::SolidCube::size

Referenced by supportpoint().

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