Cartesian Vector. More...
#include <CartVect.hpp>
Public Member Functions | |
CartVect () | |
CartVect (double v) | |
CartVect (double i, double j, double k) | |
CartVect (const double a[3]) | |
CartVect & | operator= (const double v[3]) |
double & | operator[] (unsigned i) |
double | operator[] (unsigned i) const |
CartVect & | operator+= (const CartVect &v) |
CartVect & | operator-= (const CartVect &v) |
CartVect & | operator*= (const CartVect &v) |
CartVect & | operator+= (double s) |
CartVect & | operator-= (double s) |
CartVect & | operator*= (double s) |
CartVect & | operator/= (double s) |
bool | operator== (const CartVect &v) const |
bool | operator== (double val) const |
double | length () const |
vector length More... | |
double | length_squared () const |
void | normalize () |
make unit length, or 0 if length < DBL_MIN More... | |
void | flip () |
flip direction More... | |
void | scale (const CartVect &v) |
double * | array () |
const double * | array () const |
void | get (double v[3]) const |
void | get (float v[3]) const |
Private Attributes | |
double | d [3] |
|
inline |
Definition at line 20 of file CartVect.hpp.
|
inlineexplicit |
|
inline |
|
inlineexplicit |
|
inline |
Definition at line 127 of file CartVect.hpp.
References d.
Referenced by moab::AffineXform::accumulate(), moab::BoundBox::BoundBox(), moab::box_from_axes(), moab::AdaptiveKDTreeIter::box_max(), moab::AdaptiveKDTreeIter::box_min(), moab::BoxPlaneIter::BoxPlaneIter(), moab::BVHTree::bruteforce_find(), moab::AdaptiveKDTree::build_tree(), moab::BVHTree::build_tree(), moab::BSPTreeIter::calculate_polyhedron(), moab::GeomQueryTool::closest_to_location(), moab::AdaptiveKDTree::closest_triangle(), moab::OrientedBox::compute_from_vertices(), moab::AdaptiveKDTree::distance_search(), moab::BVHTree::distance_search(), moab::IntxUtils::EdgeIntxRllCs(), moab::EvalSet::evaluate_reverse(), moab::LinearTet::evaluate_reverse(), moab::LinearTri::evaluate_reverse(), moab::MergeMesh::find_merged_to(), moab::BVHTree::find_point(), moab::GeomQueryTool::find_volume(), moab::Intx2MeshInPlane::findNodes(), moab::Intx2MeshOnSphere::findNodes(), moab::IntxRllCssphere::findNodes(), moab::OrientedBoxTreeTool::get_close_tris(), moab::ElemEvaluator::get_normal(), moab::ElemEvaluator::get_vert_pos(), moab::FBEngine::getEntBoundBox(), moab::IntxUtils::global_gnomonic_projection(), moab::SmoothFace::init_gradient(), moab::Element::Map::inside_box(), moab::ElemEvaluator::integrate(), moab::LinearHex::integrateFcn(), moab::LinearQuad::integrateFcn(), moab::ElemEvaluator::jacobian(), main(), moab::OrientedBox::make_hex(), moab::AdaptiveKDTree::point_search(), moab::BVHTree::point_search(), moab::GeomQueryTool::poly_solid_angle(), moab::ray_intersect_halfspaces(), moab::ElemEvaluator::reverse_eval(), moab::ElemEvaluator::set_ent_handle(), moab::GeomQueryTool::test_volume_boundary(), moab::ReadNCDF::update(), moab::BoundBox::update(), and moab::BoundBox::update_box_spherical_elem().
|
inline |
|
inline |
|
inline |
initialize double array from this
Definition at line 137 of file CartVect.hpp.
References d.
Referenced by moab::OrientedBoxTreeTool::box(), moab::OrientedBoxTreeTool::closest_to_location(), moab::AdaptiveKDTree::closest_triangle(), moab::AdaptiveKDTree::find_close_triangle(), moab::BoundBox::get(), moab::AdaptiveKDTree::get_info(), moab::GeomQueryTool::get_normal(), moab::WriteSTL::get_triangle_data(), moab::ElemUtil::hex_eval(), moab::ElemUtil::hex_findpt(), moab::Element::SpectralHex::ievaluate(), moab::Element::SpectralQuad::ievaluate(), moab::SmoothFace::init_gradient(), moab::Coupler::initialize_tree(), moab::Element::SpectralHex::jacobian(), moab::ElemUtil::nat_coords_trilinear_hex2(), and moab::plane_cut_edge().
|
inline |
|
inline |
vector length
Definition at line 180 of file CartVect.hpp.
Referenced by moab::SmoothFace::area(), moab::area_coordinates(), moab::box_from_axes(), moab::IntxUtils::cart_to_spherical(), moab::SmoothCurve::compute_control_points_on_boundary_edges(), compute_dual_mesh(), moab::FBEngine::compute_intersection_points(), moab::OrientedBox::contained(), moab::OrientedBox::dimensions(), edge_length(), moab::SmoothFace::init_edge_control_points(), moab::SmoothFace::init_facet_control_points(), moab::Coupler::initialize_tree(), moab::OrientedBox::inner_radius(), moab::FBEngine::measure(), moab::GeomQueryTool::measure_area(), normalize(), moab::OrientedBox::order_axes_by_length(), moab::OrientedBox::OrientedBox(), moab::OrientedBox::outer_radius(), moab::GeomQueryTool::poly_solid_angle(), moab::SmoothFace::project_to_patch(), moab::SmoothFace::ray_intersection_correct(), moab::AffineXform::rotation(), moab::IntxUtils::ScaleToRadius(), moab::element_utility::Linear_hex_map::solve_inverse(), moab::Element::SphericalQuad::SphericalQuad(), moab::Element::SphericalTri::SphericalTri(), moab::unit(), and moab::ReadNCDF::update().
|
inline |
Definition at line 185 of file CartVect.hpp.
References d.
Referenced by DeformMeshRemap::deform_master(), moab::IntxUtils::intersect_great_circle_arc_with_clat_arc(), moab::IntxUtils::intersect_great_circle_arcs(), make_tris_from_quad(), perform_laplacian_smoothing(), moab::ParallelMergeMesh::PopulateMyMatches(), moab::element_utility::Linear_hex_map::solve_inverse(), moab::IntxAreaUtils::spherical_angle(), moab::SmoothCurve::u_from_position(), and moab::FBEngine::weave_lateral_face_from_edges().
|
inline |
make unit length, or 0 if length < DBL_MIN
Definition at line 190 of file CartVect.hpp.
Referenced by moab::angle_robust(), moab::FBEngine::chain_able_edge(), moab::FBEngine::compute_intersection_points(), moab::SmoothCurve::compute_tangents_for_each_edge(), moab::SmoothFace::compute_tangents_for_each_edge(), moab::Matrix3::eigen_decomposition_native(), moab::SmoothFace::eval_bezier_patch_normal(), moab::GeomQueryTool::find_volume(), moab::GeomQueryTool::get_normal(), moab::WriteSTL::get_triangle_data(), moab::FBEngine::getEntNrmlXYZ(), getLat(), getLon(), moab::SmoothFace::init_gradient(), moab::IntxUtils::intersect_great_circle_arcs(), moab::AffineXform::rotation(), moab::FBEngine::split_surface_with_direction(), and moab::FBEngine::weave_lateral_face_from_edges().
Assign cross product to this
Definition at line 175 of file CartVect.hpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
per-element scalar multiply (this[0] *= v[0], this[1] *= v[1], ...)
Definition at line 119 of file CartVect.hpp.
References d.
Referenced by perform_laplacian_smoothing().
|
private |
Definition at line 17 of file CartVect.hpp.
Referenced by array(), CartVect(), flip(), get(), length_squared(), normalize(), operator*=(), operator+=(), operator-=(), operator/=(), operator=(), operator==(), operator[](), and scale().