Defines | Functions

geom4f.c File Reference

#include <string.h>
#include <math.h>
#include "pknum.h"
#include "pkgeom.h"
Include dependency graph for geom4f.c:

Defines

#define tol   1.0e-15
#define tol   1.0e-15

Functions

void SetPoint4f (point4f *p, float x, float y, float z, float w)
void Point4to3f (const point4f *P, point3f *p)
void Point3to4f (const point3f *p, float w, point4f *P)
void Point4to2f (const point4f *P, point2f *p)
void Point2to4f (const point2f *p, float w, point4f *P)
void Trans3Point4f (const trans3f *tr, const point4f *p, point4f *q)
void MultVector4f (double a, const vector4f *v, vector4f *w)
void SubtractPoints4f (const point4f *p1, const point4f *p2, vector4f *v)
void AddVector4f (const point4f *p, const vector4f *v, point4f *q)
void AddVector4Mf (const point4f *p, const vector4f *v, double t, point4f *q)
void InterPoint4f (const point4f *p1, const point4f *p2, double t, point4f *q)
void MidPoint4f (const point4f *p1, const point4f *p2, point4f *q)
void Interp3Vectors4f (const vector4f *p0, const vector4f *p1, const vector4f *p2, const float *coeff, vector4f *p)
void NormalizeVector4f (vector4f *v)
double det4f (const vector4f *v0, const vector4f *v1, const vector4f *v2, const vector4f *v3)
void CrossProduct4f (const vector4f *v0, const vector4f *v1, const vector4f *v2, vector4f *v)
void CrossProduct4P3f (const vector4f *v0, const vector4f *v1, const vector4f *v2, vector3f *v)
double DotProduct4f (const vector4f *v0, const vector4f *v1)
void OutProduct4P3f (const vector4f *v0, const vector4f *v1, vector3f *v)
void OrtVector4f (const vector4f *v1, const vector4f *v2, vector4f *v)
void ProjectPointOnLine4f (const point4f *p0, const point4f *p1, point4f *q)
void ProjectPointOnPlane4f (const point4f *p0, const point4f *p1, const point4f *p2, point4f *q)

Define Documentation

#define tol   1.0e-15
#define tol   1.0e-15

Function Documentation

void AddVector4f ( const point4f p,
const vector4f v,
point4f q 
)
void AddVector4Mf ( const point4f p,
const vector4f v,
double  t,
point4f q 
)
void CrossProduct4f ( const vector4f v0,
const vector4f v1,
const vector4f v2,
vector4f v 
)
void CrossProduct4P3f ( const vector4f v0,
const vector4f v1,
const vector4f v2,
vector3f v 
)
double det4f ( const vector4f v0,
const vector4f v1,
const vector4f v2,
const vector4f v3 
)
double DotProduct4f ( const vector4f v0,
const vector4f v1 
)
void Interp3Vectors4f ( const vector4f p0,
const vector4f p1,
const vector4f p2,
const float *  coeff,
vector4f p 
)
void InterPoint4f ( const point4f p1,
const point4f p2,
double  t,
point4f q 
)
void MidPoint4f ( const point4f p1,
const point4f p2,
point4f q 
)
void MultVector4f ( double  a,
const vector4f v,
vector4f w 
)
void NormalizeVector4f ( vector4f v  ) 
void OrtVector4f ( const vector4f v1,
const vector4f v2,
vector4f v 
)
void OutProduct4P3f ( const vector4f v0,
const vector4f v1,
vector3f v 
)
void Point2to4f ( const point2f p,
float  w,
point4f P 
)
void Point3to4f ( const point3f p,
float  w,
point4f P 
)
void Point4to2f ( const point4f P,
point2f p 
)
void Point4to3f ( const point4f P,
point3f p 
)
void ProjectPointOnLine4f ( const point4f p0,
const point4f p1,
point4f q 
)
void ProjectPointOnPlane4f ( const point4f p0,
const point4f p1,
const point4f p2,
point4f q 
)
void SetPoint4f ( point4f p,
float  x,
float  y,
float  z,
float  w 
)
void SubtractPoints4f ( const point4f p1,
const point4f p2,
vector4f v 
)
void Trans3Point4f ( const trans3f tr,
const point4f p,
point4f q 
)