MEPP2 Project
|
Documentation (as a template dummy class) of Geometry_traits. More...
#include <Geometry_traits.h>
Public Types | |
typedef MeshT | Mesh |
Unused internaly but nice to embed for unforseen caller usage. More... | |
typedef KernelT | Kernel |
Unused internaly but nice to embed for unforseen caller usage. More... | |
typedef Kernel::Point | Point |
typedef Kernel::Normal | Vector |
typedef Kernel::Scalar | Scalar |
Public Member Functions | |
Scalar | get_x (const Point &p1) |
Returns the normal of the three argument points (implemented as get_x() free function . More... | |
Scalar | get_y (const Point &p1) |
Returns the normal of the three argument points (implemented as get_y() free function . More... | |
Scalar | get_z (const Point &p1) |
Returns the normal of the three argument points (implemented as get_z() free function . More... | |
Vector | normalize (const Vector &v) |
Returns the normalization of vector 'v'. More... | |
Scalar | length2 (const Vector &v) |
Returns the square of the length of vector v. More... | |
Scalar | length (const Vector &v) |
Returns the length of vector v. More... | |
Scalar | length (const Point &p, const Point &q) |
Returns the distance between points p and q. More... | |
Vector | normal (const Point &p, const Point &q, const Point &r) |
Returns a vector that is normal to the plane passing through points p, q and r. More... | |
Vector | unit_normal (const Point &p, const Point &q, const Point &r) |
Returns a unit vector that is normal to the plane passing through points p, q and r. More... | |
Vector | add_v (const Vector &u, const Vector &v) |
Returns the sum of vectors u and v. More... | |
Vector | add_pv (const Point &p, const Vector &v) |
Returns the sum of point p and vector v. More... | |
Vector | sub_pv (const Point &p, const Vector &v) |
Returns the subtraction of vector v from point p. More... | |
Vector | sub_p (const Point &p, const Point &q) |
Returns the vector from point q to point p. More... | |
Vector | sub_v (const Vector &u, const Vector &v) |
Returns the subtraction of vector v from vector u. More... | |
Vector | scalar_mult (const Vector &v, Scalar s) |
Returns the multiplication of vector v by scalar s. More... | |
Scalar | dot_product (const Vector &u, const Vector &v) |
Returns the dot product of vectors u and v. More... | |
Vector | cross_product (const Vector &u, const Vector &v) |
Returns the cross product of vectors u and v. More... | |
Static Public Attributes | |
static const Point | ORIGIN |
The point at the origin. More... | |
static const Vector | NULL_VECTOR |
The zero length vector. More... | |
Documentation (as a template dummy class) of Geometry_traits.
MeshT | refer to Geometry_traits template parameters documentation |
KernelT | refer to Geometry_traits template parameters documentation |
Definition at line 175 of file Geometry_traits.h.
typedef KernelT FEVV::Geometry_traits_documentation_dummy< MeshT, KernelT >::Kernel |
Unused internaly but nice to embed for unforseen caller usage.
Definition at line 181 of file Geometry_traits.h.
typedef MeshT FEVV::Geometry_traits_documentation_dummy< MeshT, KernelT >::Mesh |
Unused internaly but nice to embed for unforseen caller usage.
Definition at line 179 of file Geometry_traits.h.
typedef Kernel::Point FEVV::Geometry_traits_documentation_dummy< MeshT, KernelT >::Point |
Definition at line 182 of file Geometry_traits.h.
typedef Kernel::Scalar FEVV::Geometry_traits_documentation_dummy< MeshT, KernelT >::Scalar |
Definition at line 184 of file Geometry_traits.h.
typedef Kernel::Normal FEVV::Geometry_traits_documentation_dummy< MeshT, KernelT >::Vector |
Definition at line 183 of file Geometry_traits.h.
Vector FEVV::Geometry_traits_documentation_dummy< MeshT, KernelT >::add_pv | ( | const Point & | p, |
const Vector & | v | ||
) |
Returns the sum of point p and vector v.
Vector FEVV::Geometry_traits_documentation_dummy< MeshT, KernelT >::add_v | ( | const Vector & | u, |
const Vector & | v | ||
) |
Returns the sum of vectors u and v.
Vector FEVV::Geometry_traits_documentation_dummy< MeshT, KernelT >::cross_product | ( | const Vector & | u, |
const Vector & | v | ||
) |
Returns the cross product of vectors u and v.
Scalar FEVV::Geometry_traits_documentation_dummy< MeshT, KernelT >::dot_product | ( | const Vector & | u, |
const Vector & | v | ||
) |
Returns the dot product of vectors u and v.
Scalar FEVV::Geometry_traits_documentation_dummy< MeshT, KernelT >::get_x | ( | const Point & | p1 | ) |
Returns the normal of the three argument points (implemented as get_x() free function .
Scalar FEVV::Geometry_traits_documentation_dummy< MeshT, KernelT >::get_y | ( | const Point & | p1 | ) |
Returns the normal of the three argument points (implemented as get_y() free function .
Scalar FEVV::Geometry_traits_documentation_dummy< MeshT, KernelT >::get_z | ( | const Point & | p1 | ) |
Returns the normal of the three argument points (implemented as get_z() free function .
Scalar FEVV::Geometry_traits_documentation_dummy< MeshT, KernelT >::length | ( | const Point & | p, |
const Point & | q | ||
) |
Returns the distance between points p and q.
Scalar FEVV::Geometry_traits_documentation_dummy< MeshT, KernelT >::length | ( | const Vector & | v | ) |
Returns the length of vector v.
Scalar FEVV::Geometry_traits_documentation_dummy< MeshT, KernelT >::length2 | ( | const Vector & | v | ) |
Returns the square of the length of vector v.
Vector FEVV::Geometry_traits_documentation_dummy< MeshT, KernelT >::normal | ( | const Point & | p, |
const Point & | q, | ||
const Point & | r | ||
) |
Returns a vector that is normal to the plane passing through points p, q and r.
Vector FEVV::Geometry_traits_documentation_dummy< MeshT, KernelT >::normalize | ( | const Vector & | v | ) |
Returns the normalization of vector 'v'.
Vector FEVV::Geometry_traits_documentation_dummy< MeshT, KernelT >::scalar_mult | ( | const Vector & | v, |
Scalar | s | ||
) |
Returns the multiplication of vector v by scalar s.
Vector FEVV::Geometry_traits_documentation_dummy< MeshT, KernelT >::sub_p | ( | const Point & | p, |
const Point & | q | ||
) |
Returns the vector from point q to point p.
Vector FEVV::Geometry_traits_documentation_dummy< MeshT, KernelT >::sub_pv | ( | const Point & | p, |
const Vector & | v | ||
) |
Returns the subtraction of vector v from point p.
Vector FEVV::Geometry_traits_documentation_dummy< MeshT, KernelT >::sub_v | ( | const Vector & | u, |
const Vector & | v | ||
) |
Returns the subtraction of vector v from vector u.
Vector FEVV::Geometry_traits_documentation_dummy< MeshT, KernelT >::unit_normal | ( | const Point & | p, |
const Point & | q, | ||
const Point & | r | ||
) |
Returns a unit vector that is normal to the plane passing through points p, q and r.
|
static |
The zero length vector.
Definition at line 284 of file Geometry_traits.h.
|
static |
The point at the origin.
Definition at line 279 of file Geometry_traits.h.