29 double len = theVec.
length();
30 if (len < 1e-12)
return dvec3(0.0, 0.0, 0.0);
31 dvec3 normVec = theVec;
dvec3 cross(const dvec3 &a, const dvec3 &b)
Definition: DtVecUtils.h:37
double length(const dvec3 &theVec)
Definition: DtVecUtils.h:20
DtVector3 crossProduct(const DtVector3 &rhs) const
get the cross product of this vector and rhs
Definition: DtVector3.h:255
T dotProduct(const DtVector3 &rhs) const
get the dot product of this vector and rhs
Definition: DtVector3.h:268
makVrv::Vector3_64 dvec3
Convenience alias for the 64-bit 3-component vector type used throughout vrvBallistics.
Definition: vrvBallistics.h:28
dvec3 normalize(const dvec3 &theVec)
Definition: DtVecUtils.h:27
double dot(const dvec3 &a, const dvec3 &b)
Definition: DtVecUtils.h:43
void normalize(void)
normalize this vector in place
Definition: DtVector3.h:167
T length(void) const
get the length of this vector
Definition: DtVector3.h:180