Classes

geometry_3d.h File Reference

#include "common/common.h"
#include <math.h>
Include dependency graph for geometry_3d.h:
This graph shows which files directly or indirectly include this file:

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* (const point3d_t &p, float r) throw ()
point3d_t operator* (float r, const point3d_t &p) throw ()
point3d_t operator+ (const point3d_t &p, const point3d_t &q) throw ()
point3d_t operator- (const point3d_t &p, const point3d_t &q) throw ()
float dotProduct (const point3d_t &p, const point3d_t &q) throw ()
 get dot product of two points/vectors
point3d_t crossProduct (const point3d_t &p, const point3d_t &q) throw ()
const vector3d_tnormalize (vector3d_t &v) throw ()
static float getDistance2 (const point3d_t &p0, const point3d_t &p1) throw ()
point3d_t readPoint (std::istream &stream)
rect3d_t readRect (std::istream &stream)
void parsePoint3d (std::istream &stream, point3d_t &p)
void parseRect3d (std::istream &stream, rect3d_t &r)
void parsePoint3d (const char *string, point3d_t &p)
void parseRect3d (const char *string, rect3d_t &r)