$search
#include <math.h>
#include <string.h>
#include <algorithm>
Go to the source code of this file.
Namespaces | |
namespace | bmtk |
Defines | |
#define | M_PI 3.14159265358979323846 |
#define | M_SQRT1_2 0.70710678118654752440 |
#define | TRACKBALL_R 0.8f |
Functions | |
template<class T > | |
static void | bmtk::CrossProd (const T *x, const T *y, T *z) |
template<class T > | |
static void | bmtk::CrossProd (const T &a, const T &b, const T &c, const T &d, const T &e, const T &f, T &g, T &h, T &i) |
template<class T > | |
static T | bmtk::cube (const T &x) |
template<class T > | |
static T | bmtk::Dist (const T *x1, const T *x2) |
template<class T > | |
static T | bmtk::Dist2 (const T *x1, const T *x2) |
template<class T > | |
static T | bmtk::Dot (const T *x, const T *y) |
template<class T > | |
static void | bmtk::FastInvert (T *matrix) |
template<class T > | |
static void | bmtk::FastProject (const T *F, const T *vert, T *coord) |
template<class T > | |
static void | bmtk::FastProject (const T *F, T x, T y, T z, T &xout, T &yout, T &zout) |
template<class T > | |
static void | bmtk::FastProjectNoZ (const T *F, const T *vert, T *coord) |
template<class T > | |
static void | bmtk::FastProjectNoZ (const T *F, T x, T y, T z, T &xout, T &yout) |
template<class T > | |
static void | bmtk::FastProjectPrecompute (T *F, const T *P, const T *M, const T *V, T zoffset=0) |
template<class T > | |
static void | bmtk::FindNormal (const T *p1, const T *p2, const T *p3, T *n) |
template<class T > | |
static T | bmtk::Len (const T *x) |
template<class T > | |
static T | bmtk::Len2 (const T *x) |
template<class T > | |
static void | bmtk::MMult (const T *M1, const T *M2, T *Mout) |
template<class T > | |
static void | bmtk::Mouse2Q (T x1, T y1, T x2, T y2, T *q) |
template<class T > | |
static void | bmtk::Mouse2TrackballPos (T x, T y, T *pos) |
template<class T > | |
static void | bmtk::MVMult (const T *M, const T *V, T *Vout, bool apply_trans=true) |
template<class T > | |
static void | bmtk::Normalize (T *v) |
template<class T > | |
static void | bmtk::Project (const T *P, const T *M, const T *V, const T *vert, T *coord, T zoffset=0) |
template<class T > | |
static void | bmtk::Q2RotAndAxis (const T *q, T &rot, T *rotaxis) |
template<class T > | |
static void | bmtk::QCompose (const T *q1, const T *q2, T *q3) |
template<class T > | |
static void | bmtk::QNorm (T *q) |
template<class T > | |
static void | bmtk::QRotate (T *x, const T *q) |
template<class T > | |
static void | bmtk::RotAndAxis2Q (T rot, const T *rotaxis, T *q) |
template<class T > | |
static T | bmtk::sqr (const T &x) |
template<class T > | |
static void | bmtk::TriBoundingSphere (const T *p1, const T *p2, const T *p3, T *cent, T &r) |