#include <VerdictVector.hpp>
Public Member Functions | |
VerdictVector () | |
VerdictVector (const double x, const double y, const double z) | |
VerdictVector (const double xyz[3]) | |
VerdictVector (const VerdictVector &tail, const VerdictVector &head) | |
VerdictVector (const VerdictVector ©_from) | |
void | set (const double xv, const double yv, const double zv) |
void | set (const double xyz[3]) |
void | set (const VerdictVector &tail, const VerdictVector &head) |
void | set (const VerdictVector &to_copy) |
double | x () const |
double | y () const |
double | z () const |
void | get_xyz (double &x, double &y, double &z) |
void | get_xyz (double xyz[3]) |
double & | r () |
double & | theta () |
void | x (const double xv) |
void | y (const double yv) |
void | z (const double zv) |
void | r (const double xv) |
void | theta (const double yv) |
void | xy_to_rtheta () |
void | rtheta_to_xy () |
void | scale_angle (double gamma, double) |
void | blow_out (double gamma, double gamma2=0.0) |
void | rotate (double angle, double) |
void | reflect_about_xaxis (double dummy, double) |
double | normalize () |
VerdictVector & | length (const double new_length) |
double | length () const |
double | distance_between (const VerdictVector &test_vector) |
double | length_squared () const |
double | interior_angle (const VerdictVector &otherVector) |
double | vector_angle_quick (const VerdictVector &vec1, const VerdictVector &vec2) |
double | vector_angle (const VerdictVector &vector1, const VerdictVector &vector2) const |
void | perpendicular_z () |
void | print_me () |
void | orthogonal_vectors (VerdictVector &vector2, VerdictVector &vector3) |
void | next_point (const VerdictVector &direction, double distance, VerdictVector &out_point) |
bool | within_tolerance (const VerdictVector &vectorPtr2, double tolerance) const |
VerdictVector & | operator+= (const VerdictVector &vec) |
VerdictVector & | operator-= (const VerdictVector &vec) |
VerdictVector & | operator*= (const VerdictVector &vec) |
VerdictVector & | operator*= (const double scalar) |
VerdictVector & | operator/= (const double scalar) |
VerdictVector | operator- () const |
VerdictVector & | operator= (const VerdictVector &from) |
Private Attributes | |
double | xVal |
double | yVal |
double | zVal |
Friends | |
VerdictVector | operator~ (const VerdictVector &vec) |
VerdictVector | operator+ (const VerdictVector &v1, const VerdictVector &v2) |
VerdictVector | operator- (const VerdictVector &v1, const VerdictVector &v2) |
VerdictVector | operator* (const VerdictVector &v1, const VerdictVector &v2) |
VerdictVector | operator* (const VerdictVector &v1, const double sclr) |
VerdictVector | operator* (const double sclr, const VerdictVector &v1) |
double | operator% (const VerdictVector &v1, const VerdictVector &v2) |
VerdictVector | operator/ (const VerdictVector &v1, const double sclr) |
int | operator== (const VerdictVector &v1, const VerdictVector &v2) |
int | operator!= (const VerdictVector &v1, const VerdictVector &v2) |
VerdictVector | interpolate (const double param, const VerdictVector &v1, const VerdictVector &v2) |
Definition at line 35 of file VerdictVector.hpp.
|
inline |
Definition at line 325 of file VerdictVector.hpp.
Referenced by operator-().
|
inline |
Definition at line 332 of file VerdictVector.hpp.
VerdictVector::VerdictVector | ( | const double | xyz[3] | ) |
Definition at line 438 of file VerdictVector.cpp.
|
inline |
|
inline |
void VerdictVector::blow_out | ( | double | gamma, |
double | gamma2 = 0.0 |
||
) |
Definition at line 133 of file VerdictVector.cpp.
References r(), rtheta_to_xy(), and xy_to_rtheta().
double VerdictVector::distance_between | ( | const VerdictVector & | test_vector | ) |
|
inline |
Definition at line 258 of file VerdictVector.hpp.
References xVal, yVal, and zVal.
Referenced by orthogonal_vectors(), and v_tet_aspect_frobenius().
|
inline |
double VerdictVector::interior_angle | ( | const VerdictVector & | otherVector | ) |
Definition at line 64 of file VerdictVector.cpp.
References length(), and VERDICT_PI.
Referenced by v_tri_maximum_angle(), and v_tri_minimum_angle().
|
inline |
Definition at line 477 of file VerdictVector.hpp.
References xVal, yVal, and zVal.
Referenced by interior_angle(), length(), normalize(), and xy_to_rtheta().
VerdictVector & VerdictVector::length | ( | const double | new_length | ) |
Definition at line 36 of file VerdictVector.cpp.
References length(), xVal, yVal, and zVal.
Referenced by interior_angle(), v_hex_max_edge_ratio(), v_hex_quality(), v_hex_taper(), v_quad_aspect_ratio(), v_quad_distortion(), v_quad_max_aspect_frobenius(), v_quad_max_edge_ratio(), v_quad_maximum_angle(), v_quad_med_aspect_frobenius(), v_quad_minimum_angle(), v_quad_quality(), v_quad_radius_ratio(), v_quad_scaled_jacobian(), v_quad_taper(), v_tet_aspect_beta(), v_tet_aspect_ratio(), v_tet_collapse_ratio(), v_tet_minimum_angle(), v_tet_quality(), v_tet_radius_ratio(), v_tri_area(), v_tri_aspect_ratio(), v_tri_condition(), v_tri_distortion(), v_tri_quality(), and v_tri_relative_size_squared().
|
inline |
Definition at line 472 of file VerdictVector.hpp.
References xVal, yVal, and zVal.
Referenced by normalize_jacobian(), v_hex_edge_ratio(), v_hex_quality(), v_hex_scaled_jacobian(), v_hex_shear(), v_quad_edge_ratio(), v_quad_max_aspect_frobenius(), v_quad_med_aspect_frobenius(), v_quad_quality(), v_quad_radius_ratio(), v_quad_shape(), v_quad_stretch(), v_tet_aspect_beta(), v_tet_aspect_gamma(), v_tet_aspect_ratio(), v_tet_edge_ratio(), v_tet_quality(), v_tet_radius_ratio(), v_tet_scaled_jacobian(), v_tri_aspect_frobenius(), v_tri_edge_ratio(), v_tri_maximum_angle(), v_tri_minimum_angle(), v_tri_quality(), v_tri_radius_ratio(), and vector_angle().
void VerdictVector::next_point | ( | const VerdictVector & | direction, |
double | distance, | ||
VerdictVector & | out_point | ||
) |
Definition at line 425 of file VerdictVector.cpp.
References normalize(), x(), xVal, y(), yVal, z(), and zVal.
|
inline |
Definition at line 482 of file VerdictVector.hpp.
References length(), xVal, yVal, and zVal.
Referenced by localize_quad_coordinates(), localize_quad_for_ef(), next_point(), orthogonal_vectors(), quad_normal(), signed_corner_areas(), v_hex_quality(), v_hex_skew(), v_quad_distortion(), v_tri_distortion(), vector_angle(), and vectorRotate().
|
inline |
|
inline |
Definition at line 308 of file VerdictVector.hpp.
|
inline |
|
inline |
Definition at line 414 of file VerdictVector.hpp.
References VerdictVector(), xVal, yVal, and zVal.
|
inline |
|
inline |
|
inline |
void VerdictVector::orthogonal_vectors | ( | VerdictVector & | vector2, |
VerdictVector & | vector3 | ||
) |
|
inline |
void VerdictVector::print_me | ( | ) |
|
inline |
Definition at line 264 of file VerdictVector.hpp.
References xVal.
Referenced by blow_out(), rtheta_to_xy(), scale_angle(), and xy_to_rtheta().
|
inline |
void VerdictVector::reflect_about_xaxis | ( | double | dummy, |
double | |||
) |
void VerdictVector::rotate | ( | double | angle, |
double | |||
) |
Definition at line 126 of file VerdictVector.cpp.
References moab::angle(), rtheta_to_xy(), theta(), and xy_to_rtheta().
void VerdictVector::rtheta_to_xy | ( | ) |
Definition at line 116 of file VerdictVector.cpp.
References r(), theta(), x(), and y().
Referenced by blow_out(), rotate(), and scale_angle().
void VerdictVector::scale_angle | ( | double | gamma, |
double | |||
) |
Definition at line 155 of file VerdictVector.cpp.
References r(), rtheta_to_xy(), theta(), TWO_VERDICT_PI, VERDICT_PI, and xy_to_rtheta().
|
inline |
Definition at line 347 of file VerdictVector.hpp.
References xVal, yVal, and zVal.
Referenced by calc_hex_efg(), form_Q(), get_weight(), inverse(), localize_hex_coordinates(), localize_quad_coordinates(), make_hex_edges(), make_quad_edges(), orthogonal_vectors(), product(), quad_normal(), v_hex_distortion(), v_hex_get_weight(), v_hex_oddy(), v_knife_volume(), v_pyramid_volume(), v_quad_condition(), v_quad_distortion(), v_quad_max_edge_ratio(), v_quad_maximum_angle(), v_quad_minimum_angle(), v_quad_quality(), v_quad_radius_ratio(), v_quad_stretch(), v_tet_aspect_beta(), v_tet_aspect_frobenius(), v_tet_aspect_gamma(), v_tet_aspect_ratio(), v_tet_collapse_ratio(), v_tet_condition(), v_tet_distortion(), v_tet_edge_ratio(), v_tet_jacobian(), v_tet_minimum_angle(), v_tet_quality(), v_tet_radius_ratio(), v_tet_scaled_jacobian(), v_tet_shape(), v_tet_volume(), v_tri_distortion(), v_tri_maximum_angle(), v_tri_minimum_angle(), v_tri_quality(), v_tri_relative_size_squared(), and v_wedge_volume().
|
inline |
|
inline |
|
inline |
Definition at line 376 of file VerdictVector.hpp.
|
inline |
Definition at line 268 of file VerdictVector.hpp.
References yVal.
Referenced by rotate(), rtheta_to_xy(), scale_angle(), and xy_to_rtheta().
|
inline |
double VerdictVector::vector_angle | ( | const VerdictVector & | vector1, |
const VerdictVector & | vector2 | ||
) | const |
Definition at line 252 of file VerdictVector.cpp.
References moab::angle(), moab::dot(), length_squared(), normalize(), TWO_VERDICT_PI, and VERDICT_PI.
double VerdictVector::vector_angle_quick | ( | const VerdictVector & | vec1, |
const VerdictVector & | vec2 | ||
) |
bool VerdictVector::within_tolerance | ( | const VerdictVector & | vectorPtr2, |
double | tolerance | ||
) | const |
|
inline |
Definition at line 240 of file VerdictVector.hpp.
References xVal.
Referenced by distance_between(), inverse(), localize_hex_coordinates(), localize_quad_coordinates(), localize_quad_for_ef(), next_point(), operator*=(), operator+=(), operator-=(), perpendicular_z(), product(), rtheta_to_xy(), v_tri_condition(), v_tri_quality(), within_tolerance(), and xy_to_rtheta().
|
inline |
void VerdictVector::xy_to_rtheta | ( | ) |
Definition at line 105 of file VerdictVector.cpp.
References length(), r(), theta(), TWO_VERDICT_PI, x(), and y().
Referenced by blow_out(), rotate(), and scale_angle().
|
inline |
Definition at line 244 of file VerdictVector.hpp.
References yVal.
Referenced by distance_between(), inverse(), localize_hex_coordinates(), localize_quad_coordinates(), localize_quad_for_ef(), next_point(), operator*=(), operator+=(), operator-=(), perpendicular_z(), product(), rtheta_to_xy(), v_tri_condition(), v_tri_quality(), within_tolerance(), and xy_to_rtheta().
|
inline |
|
inline |
Definition at line 248 of file VerdictVector.hpp.
References zVal.
Referenced by distance_between(), inverse(), localize_hex_coordinates(), localize_quad_coordinates(), next_point(), operator*=(), operator+=(), operator-=(), product(), v_tri_condition(), v_tri_quality(), and within_tolerance().
|
inline |
|
friend |
Definition at line 98 of file VerdictVector.cpp.
|
friend |
|
friend |
Definition at line 495 of file VerdictVector.hpp.
|
friend |
Definition at line 451 of file VerdictVector.hpp.
|
friend |
Definition at line 445 of file VerdictVector.hpp.
|
friend |
Definition at line 439 of file VerdictVector.hpp.
|
friend |
Definition at line 419 of file VerdictVector.hpp.
|
friend |
Definition at line 428 of file VerdictVector.hpp.
|
friend |
Definition at line 457 of file VerdictVector.hpp.
|
friend |
|
friend |
Definition at line 401 of file VerdictVector.hpp.
|
private |
Definition at line 225 of file VerdictVector.hpp.
Referenced by distance_between(), get_xyz(), length(), length_squared(), next_point(), normalize(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), operator=(), r(), set(), and x().
|
private |
Definition at line 226 of file VerdictVector.hpp.
Referenced by distance_between(), get_xyz(), length(), length_squared(), next_point(), normalize(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), operator=(), reflect_about_xaxis(), set(), theta(), and y().
|
private |
Definition at line 227 of file VerdictVector.hpp.
Referenced by distance_between(), get_xyz(), length(), length_squared(), next_point(), normalize(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), operator=(), set(), and z().