Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

geometry.cpp File Reference

Geometric functions. More...

#include <geometry.h>

Include dependency graph for geometry.cpp:

Include dependency graph

Compounds

class  PointInConvexPoly2D
 2D Point in Polygon using temlates. More...

class  XComponent
 . More...

class  YComponent
 . More...

class  ZComponent
 . More...


Defines

#define RES   1.0e-6
#define EPSILON   RES

Functions

bool pointInConvexPoly (const Vertex3 *v, const unsigned short *f, int N, const Vertex3 &p, const Vertex3 &n)
 3D Point in Polygon.

void closestPointOnLine (const Vertex3 &a, const Vertex3 &b, const Vertex3 &p, Vertex3 &closestPoint)
Vertex3 closestPointOnPoly (const Vertex3 *v, const unsigned short *f, int N, const Vertex3 &p)
real bezmag (real t, Vertex3 *p)
Vertex3 bezpoint (real t, Vertex3 *p)
int allroots (real *x, real *tt, int nn)
real solveQuadric (real a, real b, real c)
real distanceToBezierSeg (Vertex3 *bezier, Vertex3 &v)
real MAX (real a, real b)
void decasteljau (real t, real *x, real *p, real *q, int n)
real rootfinder (real *x, int n)

Variables

XComponent getX
 .

YComponent getY
 .

ZComponent getZ
 .


Detailed Description

Geometric functions.

Todo:
Move functions to namespace.


This documentation was generated using doxygen. If you have any comments or additions please mail me.