1 #ifndef MATEMATICAPLANE_H 2 #define MATEMATICAPLANE_H 6 #include "MatematicaVect.h" Vettore Norm
Normal and inverse to the normal.
Vettore P1
Points defining the plane.
double dPar
d of ax+by+cz+d=0
Vettore GetVertex(int i)
Get vertex.
Geometrical operations on vectors.
Vettore ProjOnNorm(Vettore *v)
Project on normal (vector)
int IsOnSurf1(Vettore *P)
If the point is inside the triangle first method.
int IsInf[3]
If the inverse to the normal is infinite.
Piano(Vettore *P1, Vettore *P2, Vettore *P3)
Allocates.
int SameSide(Vettore *P, Vettore *A, Vettore *B, Vettore *C)
Is the orientation of the difference vectors on the same side?
double Distance(Vettore *P)
Distance.
double Bound[6]
Boundaries.
Vettore Dir21
Direction vectors.
Vettore Reflect(Vettore *V)
Reflect a vector by the normal.
int IsOnSurf2(Vettore *P)
If the point is inside the triangle second method.
double Rad
Radius of the contact.
double Inv(double x)
Calculate the inverse.
int Impact(Vettore *P, Vettore *V)
Reflect velocity.
int IsOnSurf(Vettore *P)
If the point is inside the triangle.
Vettore ProjOnSurf(Vettore *Pos)
Project on surface (point)