Files Classes Functions Hierarchy
#include <mathlib.h>
Static Public Member Functions | |
| template<class T > | |
| static void | eval (T &w, T const &a, T const &b) |
| On the right hand a is the thumb, b is the first finger, w points outwards of palm. | |
| template<class T > | |
| static void | evalxyz (T &w, T const &a, T const &b) |
| On the right hand a is the thumb, b is the first finger, w points outwards of palm. | |
Definition at line 76 of file mathlib.h.
| static void crossproduct::eval | ( | T & | w, | |
| T const & | a, | |||
| T const & | b | |||
| ) | [inline, static] |
On the right hand a is the thumb, b is the first finger, w points outwards of palm.
Definition at line 83 of file mathlib.h.
Referenced by surfaceplane< T >::operator()(), test03(), tetrahedronvolume(), tetrahedron< PT, PD >::triangleverticiespoint(), and tetrahedron< PT, PD >::verticiespoint().
00084 { 00085 w[0] = a[1]*b[2]-b[1]*a[2]; 00086 w[1] = a[2]*b[0]-a[0]*b[2]; 00087 w[2] = a[0]*b[1]-a[1]*b[0]; 00088 }
| static void crossproduct::evalxyz | ( | T & | w, | |
| T const & | a, | |||
| T const & | b | |||
| ) | [inline, static] |
On the right hand a is the thumb, b is the first finger, w points outwards of palm.
Definition at line 93 of file mathlib.h.
Referenced by myRotate::draw(), gobjMyCircleDraw::draw(), triangle3D< PT, PD >::equilaterali(), plane::intersects(), disk::intersects(), triangle3D< typename TET::PTtype, typename TET::PDtype >::normal(), triangle3D< PT, PD >::normali(), triangle3D< PT, PD >::orthocenteri(), plane::plane(), and tetrahedron< PT, PD >::valid().
00094 { 00095 w.x = a.y*b.z-b.y*a.z; 00096 w.y = a.z*b.x-a.x*b.z; 00097 w.z = a.x*b.y-a.y*b.x; 00098 }
1.5.8