#include <plane.h>
Public Member Functions | |
const Point & | boundingMax () const |
const Point & | boundingMin () const |
virtual bool | fitsIntoBox (const Box &box) const |
virtual bool | interfereWithBox (const Box &box) const |
virtual bool | isPointInside (float x, float y, float z) const |
virtual bool | isSimilar (const Object *object) const |
const Vector & | normal () const |
Plane (const Point ¢er, const Vector &normal, const Point &scale) | |
Plane (const Polygon &points) | |
const Polygon & | points () const |
const Point & | pos () const |
Private Attributes | |
Point | m_boundingMax |
Point | m_boundingMin |
float | m_d |
Vector | m_normal |
Polygon | m_points |
Point | m_pos |
objtree::Plane::Plane | ( | const Point & | center, |
const Vector & | normal, | ||
const Point & | scale | ||
) |
objtree::Plane::Plane | ( | const Polygon & | points | ) |
const Point& objtree::Plane::boundingMax | ( | ) | const [inline] |
const Point& objtree::Plane::boundingMin | ( | ) | const [inline] |
bool objtree::Plane::fitsIntoBox | ( | const Box & | box | ) | const [virtual] |
Returns true if plane fits into a box. TODO: Not implemented.
box | box for test |
Implements objtree::Object.
bool objtree::Plane::interfereWithBox | ( | const Box & | box | ) | const [virtual] |
Returns true if plane interferes with a box.
box | box for test |
Implements objtree::Object.
bool objtree::Plane::isPointInside | ( | float | x, |
float | y, | ||
float | z | ||
) | const [virtual] |
Check if point is on a plane.
x | |
y | |
z |
Implements objtree::Object.
bool objtree::Plane::isSimilar | ( | const Object * | object | ) | const [virtual] |
Compare other object for similarity.
object | object to compare |
Implements objtree::Object.
const Vector& objtree::Plane::normal | ( | ) | const [inline] |
const Polygon& objtree::Plane::points | ( | ) | const [inline] |
const Point& objtree::Plane::pos | ( | ) | const [inline] |
Point objtree::Plane::m_boundingMax [private] |
Point objtree::Plane::m_boundingMin [private] |
float objtree::Plane::m_d [private] |
Vector objtree::Plane::m_normal [private] |
Polygon objtree::Plane::m_points [private] |
Point objtree::Plane::m_pos [private] |