#include "common/common.h"
#include <math.h>
Go to the source code of this file.
Classes | |
struct | point3d_t |
basic 3D point object. More... | |
struct | rect3d_t |
standard 3D axis-aligned rectangle (also called axis-aligned bounding box, AABB) More... | |
| |
enum | eContains { eContains_Fully = 0x01, eContains_Partial = 0x02, eContains_None = 0x10, eContains_HitMask = 0x03, eContains_Invalid = 0 } |
typedef point3d_t | vector3d_t |
point3d_t | operator* (IN const point3d_t &p, IN float r) throw () |
point3d_t | operator* (IN float r, IN const point3d_t &p) throw () |
point3d_t | operator+ (IN const point3d_t &p, IN const point3d_t &q) throw () |
point3d_t | operator- (IN const point3d_t &p, IN const point3d_t &q) throw () |
float | dotProduct (IN const point3d_t &p, IN const point3d_t &q) throw () |
get dot product of two points/vectors | |
point3d_t | crossProduct (IN const point3d_t &p, IN const point3d_t &q) throw () |
const vector3d_t & | normalize (IO vector3d_t &v) throw () |
static float | getDistance2 (IN const point3d_t &p0, IN const point3d_t &p1) throw () |
point3d_t | readPoint (IN std::istream &stream) |
rect3d_t | readRect (IN std::istream &stream) |
void | parsePoint3d (IO std::istream &stream, OUT point3d_t &p) |
void | parseRect3d (IO std::istream &stream, OUT rect3d_t &r) |
void | parsePoint3d (IN const char *string, OUT point3d_t &p) |
void | parseRect3d (IN const char *string, OUT rect3d_t &r) |