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

#include <mpr.hpp>

Inheritance diagram for mpr::EntOBB:
mpr::Ent

Public Member Functions

 EntOBB (physent *ent, float zmargin=0)
 
vec center () const
 
vec contactface (const vec &wn, const vec &wdir) const
 
vec localsupportpoint (const vec &ln) const
 
vec supportpoint (const vec &n) const
 
float supportcoordneg (float a, float b, float c) const
 
float supportcoord (float a, float b, float c) const
 
float left () const
 
float right () const
 
float back () const
 
float front () const
 
float bottom () const
 
float top () const
 

Public Attributes

matrix3 orient
 
float zmargin
 
physentent
 

Constructor & Destructor Documentation

mpr::EntOBB::EntOBB ( physent ent,
float  zmargin = 0 
)
inline

Member Function Documentation

float mpr::EntOBB::back ( ) const
inline
float mpr::EntOBB::bottom ( ) const
inline
vec mpr::EntOBB::center ( ) const
inline
vec mpr::EntOBB::contactface ( const vec wn,
const vec wdir 
) const
inline
float mpr::EntOBB::front ( ) const
inline
float mpr::EntOBB::left ( ) const
inline
vec mpr::EntOBB::localsupportpoint ( const vec ln) const
inline
float mpr::EntOBB::right ( ) const
inline
float mpr::EntOBB::supportcoord ( float  a,
float  b,
float  c 
) const
inline

References vec::dot(), and localsupportpoint().

Referenced by front(), and right().

float mpr::EntOBB::supportcoordneg ( float  a,
float  b,
float  c 
) const
inline

References vec::dot(), and localsupportpoint().

Referenced by back(), and left().

vec mpr::EntOBB::supportpoint ( const vec n) const
inline
float mpr::EntOBB::top ( ) const
inline

Member Data Documentation

physent* mpr::Ent::ent
inherited
matrix3 mpr::EntOBB::orient
float mpr::EntOBB::zmargin

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