Commit af53efdd authored by Lucas Moesch's avatar Lucas Moesch

Added division support for VAVec3.

parent fd7766fb
......@@ -217,6 +217,22 @@ inline VABASE_API VAVec3 operator*( const VAVec3& oVec, const double dScalar )
return vScaledVector;
};
//!< Scalar division operator for vectors
/**
* @param[in] oVec Vector
* @param[in] dScalar Scalar
*
* @return Scaled vector
*/
inline VABASE_API VAVec3 operator/(const VAVec3& oVec, const double dScalar)
{
VAVec3 vScaledVector = oVec;
vScaledVector.x /= dScalar;
vScaledVector.y /= dScalar;
vScaledVector.z /= dScalar;
return vScaledVector;
};
//! Stream output operator for VAVec3
/**
* Output format: "< x, y, z >"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment