API functions that utilize the vec3d class are grouped here. For details of the class, including member functions, see vec3d.
Click here to return to the main page.
More...
Functions | |
double | dist (const vec3d &in a, const vec3d &in b) |
double | dist_squared (const vec3d &in a, const vec3d &in b) |
double | dot (const vec3d &in a, const vec3d &in b) |
vec3d | cross (const vec3d &in a, const vec3d &in b) |
double | angle (const vec3d &in a, const vec3d &in b) |
double | signed_angle (const vec3d &in a, const vec3d &in b, const vec3d &in ref) |
vec3d | RotateArbAxis (const vec3d &in p, double theta, const vec3d &in axis) |
Calculate the distance between two vec3d inputs
Calculate distance squared between two vec3d inputs
Calculate the cosine of angle between two vec3d inputs \code{.cpp} vec3d pnt = vec3d( 2, 4, 6); vec3d line_pt1(), line_pt2(); line_pt1.set_z( 4 ); line_pt2.set_y( 3 ); vec3d p_ln1 = pnt - line_pt1; vec3d ln2_ln1 = line_pt2 - line_pt1; double numer = cos_angle( p_ln1, ln2_ln1 ) * p_ln1.mag(); \sa angle \param [in] a First vec3d \param [in] b Second vec3d \return Angle in Radians
*/ double cos_angle(const vec3d&in a, const vec3d&in b);
/*!
*/
/*! Rotate a input point by specified angle around an arbitrary axis. Assume right hand coordinate system
[in] | p | Coordinate point to rotate |
[in] | theta | Angle of rotation in Radians |
[in] | axis | Reference axis for rotation |
Calculate the signed angle between two vec3d inputs (dot product divided by their magnitudes multiplied) and an input reference axis