Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
geom.cpp File Reference
#include "inexor/shared/cube_loops.hpp"
#include "inexor/shared/geom.hpp"

Functions

static double det2x2 (double a, double b, double c, double d)
 
static double det3x3 (double a1, double a2, double a3, double b1, double b2, double b3, double c1, double c2, double c3)
 
bool raysphereintersect (const vec &center, float radius, const vec &o, const vec &ray, float &dist)
 physics engine: collision (intersection) check functions More...
 
bool rayboxintersect (const vec &b, const vec &s, const vec &o, const vec &ray, float &dist, int &orient)
 
bool linecylinderintersect (const vec &from, const vec &to, const vec &start, const vec &end, float radius, float &dist)
 

Variables

const vec2 sincos360 [721]
 

Function Documentation

static double det2x2 ( double  a,
double  b,
double  c,
double  d 
)
inlinestatic

Referenced by det3x3().

static double det3x3 ( double  a1,
double  a2,
double  a3,
double  b1,
double  b2,
double  b3,
double  c1,
double  c2,
double  c3 
)
inlinestatic

References det2x2().

Referenced by matrix4::invert().

bool linecylinderintersect ( const vec from,
const vec to,
const vec start,
const vec end,
float  radius,
float &  dist 
)
bool rayboxintersect ( const vec b,
const vec s,
const vec o,
const vec ray,
float &  dist,
int &  orient 
)
bool raysphereintersect ( const vec center,
float  radius,
const vec o,
const vec ray,
float &  dist 
)

physics engine: collision (intersection) check functions

References hmap::d, vec::dot(), vec::squaredlen(), and vec::sub().

Variable Documentation

const vec2 sincos360[721]