#include <vector3.h>
Collaboration diagram for mesh::Vector3:

| Public Member Functions | |
| Vector3 () | |
| Vector3 (Real fX, Real fY, Real fZ) | |
| Vector3 (Real afCoordinate[3]) | |
| Vector3 (int afCoordinate[3]) | |
| Vector3 (const Real *const r) | |
| Vector3 (const Vector3 &rkVector) | |
| Real | operator[] (unsigned i) const | 
| Real & | operator[] (unsigned i) | 
| Vector3 & | operator= (const Vector3 &rkVector) | 
| bool | operator== (const Vector3 &rkVector) const | 
| bool | operator!= (const Vector3 &rkVector) const | 
| Vector3 | operator+ (const Vector3 &rkVector) const | 
| Vector3 | operator- (const Vector3 &rkVector) const | 
| Vector3 | operator * (Real fScalar) const | 
| Vector3 | operator * (const Vector3 &rhs) const | 
| Vector3 | operator/ (Real fScalar) const | 
| Vector3 | operator- () const | 
| Vector3 & | operator+= (const Vector3 &rkVector) | 
| Vector3 & | operator-= (Real fScalar) | 
| Vector3 & | operator-= (const Vector3 &rkVector) | 
| Vector3 & | operator *= (Real fScalar) | 
| Vector3 & | operator *= (const Vector3 &rkVector) | 
| Vector3 & | operator/= (Real fScalar) | 
| Real | length () const | 
| Real | squared_length () const | 
| Real | dot_product (const Vector3 &vec) const | 
| Real | normalise () | 
| Vector3 | cross_product (const Vector3 &rkVector) const | 
| Vector3 | mid_point (const Vector3 &vec) const | 
| bool | operator< (const Vector3 &rhs) const | 
| bool | operator<= (const Vector3 &rhs) const | 
| bool | operator< (Real scalar) const | 
| bool | operator<= (Real scalar) const | 
| bool | operator> (const Vector3 &rhs) const | 
| bool | operator> (Real scalar) const | 
| bool | operator>= (Real scalar) const | 
| void | make_floor (const Vector3 &cmp) | 
| void | make_ceil (const Vector3 &cmp) | 
| Vector3 | perpendicular (void) const | 
| bool | is_zero_length (void) const | 
| Vector3 | normalised_copy (void) const | 
| Vector3 | reflect (const Vector3 &normal) | 
| Public Attributes | |
| Real | x | 
| Real | y | 
| Real | z | 
| Static Public Attributes | |
| static const Vector3 | ZERO | 
| static const Vector3 | UNIT_X | 
| static const Vector3 | UNIT_Y | 
| static const Vector3 | UNIT_Z | 
| static const Vector3 | UNIT_SCALE | 
| Friends | |
| Vector3 | operator * (Real fScalar, const Vector3 &rkVector) | 
| std::ostream & | operator<< (std::ostream &o, const Vector3 &v) | 
Definition at line 35 of file vector3.h.
| mesh::Vector3::Vector3 | ( | ) |  [inline] | 
| mesh::Vector3::Vector3 | ( | Real | fX, | |
| Real | fY, | |||
| Real | fZ | |||
| ) |  [inline] | 
| mesh::Vector3::Vector3 | ( | int | afCoordinate[3] | ) |  [inline] | 
| mesh::Vector3::Vector3 | ( | const Vector3 & | rkVector | ) |  [inline] | 
Calculates the cross-product of 2 vectors, i.e. the vector that lies perpendicular to them both.
| vec | Vector which, together with this one, will be used to calculate the cross-product. | 
Definition at line 339 of file vector3.h.
Referenced by perpendicular().
| Real mesh::Vector3::dot_product | ( | const Vector3 & | vec | ) | const  [inline] | 
Calculates the dot (scalar) product of this vector with another.
| vec | Vector with which to calculate the dot product (together with this one). | 
Definition at line 282 of file vector3.h.
Referenced by MyEfieldDs< Curve >::operator()(), EfieldIntegrand::operator()(), EfieldDs< Curve >::operator()(), and NedelecElement::surface_integral_curl().
| bool mesh::Vector3::is_zero_length | ( | void | ) | const  [inline] | 
| Real mesh::Vector3::length | ( | ) | const  [inline] | 
Returns the length (magnitude) of the vector.
Definition at line 248 of file vector3.h.
Referenced by postprocess::VtkExport::integrate_a_to_b(), and normalise().
| void mesh::Vector3::make_ceil | ( | const Vector3 & | cmp | ) |  [inline] | 
Sets this vector's components to the maximum of its own and the ones of the passed in vector.
| void mesh::Vector3::make_floor | ( | const Vector3 & | cmp | ) |  [inline] | 
Sets this vector's components to the minimum of its own and the ones of the passed in vector.
Definition at line 438 of file vector3.h.
Referenced by mesh::TetMesh::get_bounding_box(), and mesh::Tet::get_bounding_box().
| Real mesh::Vector3::normalise | ( | ) |  [inline] | 
Normalises the vector.
Definition at line 296 of file vector3.h.
References length(), Real, x, y, and z.
Referenced by normalised_copy().
Here is the call graph for this function:

| Vector3 mesh::Vector3::normalised_copy | ( | void | ) | const  [inline] | 
As normalise, except that this vector is unaffected and the normalised vector is returned as a copy.
Definition at line 492 of file vector3.h.
References normalise().
Here is the call graph for this function:

| Vector3 mesh::Vector3::operator * | ( | Real | fScalar | ) | const  [inline] | 
| Vector3& mesh::Vector3::operator *= | ( | Real | fScalar | ) |  [inline] | 
| bool mesh::Vector3::operator!= | ( | const Vector3 & | rkVector | ) | const  [inline] | 
| Vector3 mesh::Vector3::operator- | ( | ) | const  [inline] | 
| Vector3& mesh::Vector3::operator-= | ( | Real | fScalar | ) |  [inline] | 
| Vector3 mesh::Vector3::operator/ | ( | Real | fScalar | ) | const  [inline] | 
| Vector3& mesh::Vector3::operator/= | ( | Real | fScalar | ) |  [inline] | 
| bool mesh::Vector3::operator< | ( | Real | scalar | ) | const  [inline] | 
| bool mesh::Vector3::operator< | ( | const Vector3 & | rhs | ) | const  [inline] | 
| bool mesh::Vector3::operator<= | ( | Real | scalar | ) | const  [inline] | 
| bool mesh::Vector3::operator<= | ( | const Vector3 & | rhs | ) | const  [inline] | 
| bool mesh::Vector3::operator== | ( | const Vector3 & | rkVector | ) | const  [inline] | 
| bool mesh::Vector3::operator> | ( | Real | scalar | ) | const  [inline] | 
| bool mesh::Vector3::operator> | ( | const Vector3 & | rhs | ) | const  [inline] | 
| bool mesh::Vector3::operator>= | ( | Real | scalar | ) | const  [inline] | 
| Real& mesh::Vector3::operator[] | ( | unsigned | i | ) |  [inline] | 
| Real mesh::Vector3::operator[] | ( | unsigned | i | ) | const  [inline] | 
| Vector3 mesh::Vector3::perpendicular | ( | void | ) | const  [inline] | 
Generates a vector perpendicular to this vector (eg an 'up' vector).
Definition at line 466 of file vector3.h.
References cross_product(), is_zero_length(), UNIT_X, and UNIT_Y.
Here is the call graph for this function:

| Real mesh::Vector3::squared_length | ( | ) | const  [inline] | 
Returns the square of the length(magnitude) of the vector.
| std::ostream& operator<< | ( | std::ostream & | o, | |
| const Vector3 & | v | |||
| ) |  [friend] | 
| const Vector3 mesh::Vector3::UNIT_SCALE  [static] | 
| const Vector3 mesh::Vector3::UNIT_X  [static] | 
| const Vector3 mesh::Vector3::UNIT_Y  [static] | 
| const Vector3 mesh::Vector3::UNIT_Z  [static] | 
| Real mesh::Vector3::x | 
Definition at line 38 of file vector3.h.
Referenced by mesh::LooseOctree< NodeType >::add_node(), mesh::Tet::cartesian_to_simplex(), mesh::TetMesh::construct_octree(), cross_product(), dot_product(), mesh::Octant< NodeType >::dump(), postprocess::VtkExport::export_a_to_b(), postprocess::VtkExport::export_eigenfields2(), postprocess::VtkExport::export_mesh(), export_mesh(), mesh::LooseOctree< NodeType >::export_vtk_level(), NedelecElement::get_AeMe(), mesh::Octant< NodeType >::get_child_index_for_point(), postprocess::VtkExport::getdimensions(), h5_write_eigenfield(), mesh::Tet::is_inside_bounding_box(), mesh::Tet::is_inside_bounding_box_gracious(), is_zero_length(), length(), make_ceil(), make_floor(), mid_point(), normalise(), operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), operator<=(), mesh::Vector4::operator=(), operator=(), operator==(), operator>(), operator>=(), operator[](), squared_length(), Vector3(), and vtk_export_eigenfields().
| Real mesh::Vector3::y | 
Definition at line 38 of file vector3.h.
Referenced by mesh::LooseOctree< NodeType >::add_node(), mesh::Tet::cartesian_to_simplex(), mesh::TetMesh::construct_octree(), cross_product(), dot_product(), mesh::Octant< NodeType >::dump(), postprocess::VtkExport::export_a_to_b(), postprocess::VtkExport::export_eigenfields2(), postprocess::VtkExport::export_mesh(), export_mesh(), mesh::LooseOctree< NodeType >::export_vtk_level(), NedelecElement::get_AeMe(), mesh::Octant< NodeType >::get_child_index_for_point(), postprocess::VtkExport::getdimensions(), h5_write_eigenfield(), mesh::Tet::is_inside_bounding_box(), mesh::Tet::is_inside_bounding_box_gracious(), is_zero_length(), length(), make_ceil(), make_floor(), mid_point(), normalise(), operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), operator<=(), mesh::Vector4::operator=(), operator=(), operator==(), operator>(), operator>=(), squared_length(), Vector3(), and vtk_export_eigenfields().
| Real mesh::Vector3::z | 
Definition at line 38 of file vector3.h.
Referenced by mesh::LooseOctree< NodeType >::add_node(), mesh::Tet::cartesian_to_simplex(), mesh::TetMesh::construct_octree(), cross_product(), dot_product(), mesh::Octant< NodeType >::dump(), postprocess::VtkExport::export_a_to_b(), postprocess::VtkExport::export_eigenfields2(), postprocess::VtkExport::export_mesh(), export_mesh(), mesh::LooseOctree< NodeType >::export_vtk_level(), NedelecElement::get_AeMe(), mesh::Octant< NodeType >::get_child_index_for_point(), postprocess::VtkExport::getdimensions(), h5_write_eigenfield(), mesh::Tet::is_inside_bounding_box(), mesh::Tet::is_inside_bounding_box_gracious(), is_zero_length(), length(), make_ceil(), make_floor(), mid_point(), normalise(), operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), operator<=(), mesh::Vector4::operator=(), operator=(), operator==(), operator>(), operator>=(), squared_length(), Vector3(), and vtk_export_eigenfields().
| const Vector3 mesh::Vector3::ZERO  [static] | 
Definition at line 508 of file vector3.h.
Referenced by postprocess::LinearFieldInterpolation::eval(), and postprocess::LinearFieldInterpolation::eval_curl().
 1.4.7
 1.4.7