Vector_2D
-
template<typename F>
class HPS::Vector_2D Public Functions
- inline HPS_INLINE F Cross (Vector_2D const &v) const
- inline HPS_INLINE F Dot (Vector_2D const &v) const
- inline HPS_INLINE double Length () const
- Returns
The length of this vector.
- inline HPS_INLINE double LengthSquared () const
- inline HPS_INLINE F Magnitude () const
Returns the largest absolute directional vector of all major directions (x or y).
- Returns
Largest absolute directional vector component.
- inline HPS_INLINE F Manhattan () const
- inline HPS_INLINE Vector_2D & Normalize (bool check_range=false, F epsilon=Float_Traits< F >::Epsilon())
- inline HPS_INLINE Vector_2D & Normalize (F epsilon)
- inline HPS_INLINE Vector_2D Normalized (bool check_range=false, F epsilon=Float_Traits< F >::Epsilon()) const
- inline HPS_INLINE Vector_2D Normalized (F epsilon) const
- inline HPS_INLINE Vector_2D Scale (Vector_2D const &v) const
-
inline Vector_2D()
Public Static Functions
- static inline HPS_INLINE Vector_2D Unit ()
- static inline HPS_INLINE Vector_2D XAxis ()
- static inline HPS_INLINE Vector_2D YAxis ()
- static inline HPS_INLINE Vector_2D Zero ()