Vector_3D
-
template<typename F>
class Vector_3D Public Functions
- inline HPS_INLINE Vector_3D & Clean_Zeroes (F epsilon=F(1.0e-4))
- inline HPS_INLINE Vector_3D Cross (Vector_3D const &v) const
- inline HPS_INLINE F Dot (Vector_3D const &v) const
- inline HPS_INLINE double Length () const
- Returns:
The length of this vector.
- inline HPS_INLINE double Length2D () const
- inline HPS_INLINE double LengthSquared () const
- inline HPS_INLINE double LengthSquared2D () const
- inline HPS_INLINE F Magnitude () const
Returns the largest absolute directional vector of all major directions (x, y, or z), also known as the “Chebyshev Distance”.
- Returns:
Largest absolute directional vector component.
- inline HPS_INLINE F Manhattan () const
- inline HPS_INLINE Vector_3D & Normalize (bool check_range=false, F epsilon=Float_Traits< F >::Epsilon())
- inline HPS_INLINE Vector_3D & Normalize (F epsilon)
- inline HPS_INLINE Vector_3D Normalized (bool check_range=false, F epsilon=Float_Traits< F >::Epsilon()) const
- inline HPS_INLINE Vector_3D Normalized (F epsilon) const
- inline HPS_INLINE Vector_3D Scale (Vector_3D const &v) const
-
inline Vector_3D()
Public Static Functions
- static inline HPS_INLINE Vector_3D Unit ()
- static inline HPS_INLINE Vector_3D XAxis ()
- static inline HPS_INLINE Vector_3D YAxis ()
- static inline HPS_INLINE Vector_3D ZAxis ()
- static inline HPS_INLINE Vector_3D Zero ()