#include <Vector.h>


Public Member Functions | |
| Vector () | |
| Vector (cvrFloat x, cvrFloat y, cvrFloat z) | |
| Vector (XYZ &ptA, XYZ &ptB) | |
| Vector (XYZ &pt) | |
| ~Vector () | |
| double | magnitude () |
| return the magnitude (length) of this vector | |
| void | makeUnit () |
| make this vector a unit length of 1 | |
| double | dotProduct (Vector &v_in) |
| return the dot product between this vector and another | |
| double | dotProduct (XYZ &v_in) |
| double | angle (Vector &v_in) |
| find the angle between two vectors on their common plane | |
| Vector & | operator= (const Vector &vect) |
| Vector & | operator+= (const Vector &vect) |
| Vector & | operator-= (const Vector &vect) |
| Vector & | operator= (const XYZ &pt) |
| Vector & | operator+= (const XYZ &pt) |
| Vector & | operator-= (const XYZ &pt) |
| Vector & | operator/= (const double div_val) |
| Vector & | operator*= (const double mp_val) |
| Vector & | operator*= (const Vector &vect) |
| Vector | operator+ (const Vector &vect) |
| cross product | |
| Vector | operator- (const Vector &vect) |
| Vector | operator/ (const double div_val) |
| Vector | operator* (const double mp_val) |
| Vector | operator* (const Vector &vect) |
| Vector | operator+ (const XYZ &pt) |
| cross product | |
| Vector | operator- (const XYZ &pt) |
Static Public Member Functions | |
| static bool | linePlaneIntersect (XYZ &returned_intersect_point, Vector &normal, XYZ &point_on_plane, XYZ &segment_start, XYZ &segment_end) |
| form a plane from normal and point_on_plane and test segment start->end to find returned_intersect_point | |
| static XYZ | getClosestTo (XYZ &lineA, XYZ &lineB, XYZ &pointTest) |
| find point outPt on line A->B closest to point pointTest | |
| static Vector | crossProduct (const Vector &vectA, const Vector &vectB) |
| return the cross product of vector A and B | |
Friends | |
| bool | operator== (const Vector &vect1, const Vector &vect2) |
| bool | operator!= (const Vector &vect1, const Vector &vect2) |
| Vector::Vector | ( | ) |
| Vector::Vector | ( | cvrFloat | x, | |
| cvrFloat | y, | |||
| cvrFloat | z | |||
| ) |
| Vector::Vector | ( | XYZ & | pt | ) |
| Vector::~Vector | ( | ) |
| double Vector::magnitude | ( | ) |
return the magnitude (length) of this vector
| void Vector::makeUnit | ( | ) |
make this vector a unit length of 1

| double Vector::dotProduct | ( | Vector & | v_in | ) |
return the dot product between this vector and another
| double Vector::dotProduct | ( | XYZ & | v_in | ) |
| double Vector::angle | ( | Vector & | v_in | ) |
find the angle between two vectors on their common plane

| bool Vector::linePlaneIntersect | ( | XYZ & | returned_intersect_point, | |
| Vector & | normal, | |||
| XYZ & | point_on_plane, | |||
| XYZ & | segment_start, | |||
| XYZ & | segment_end | |||
| ) | [static] |
form a plane from normal and point_on_plane and test segment start->end to find returned_intersect_point

find point outPt on line A->B closest to point pointTest

return the cross product of vector A and B
| Vector & Vector::operator/= | ( | const double | div_val | ) |
| Vector & Vector::operator*= | ( | const double | mp_val | ) |
| Vector Vector::operator/ | ( | const double | div_val | ) |
| Vector Vector::operator* | ( | const double | mp_val | ) |
1.5.6