Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
#include <Vector3.hpp>
Public Member Functions | |
| Vector3 (const Vector3 &other) | |
| Vector3 () | |
| template<class T > | |
| Vector3 (const T &other) | |
| Vector3 (scalar_type x, scalar_type y, scalar_type z) | |
| Vector3 (const Vector2< scalar_type > &v, scalar_type z) | |
| scalar_type * | ptr () |
| const scalar_type * | ptr () const |
| const scalar_type & | x () const |
| const scalar_type & | y () const |
| const scalar_type & | z () const |
| scalar_type & | x () |
| scalar_type & | y () |
| scalar_type & | z () |
| const scalar_type & | r () const |
| const scalar_type & | g () const |
| const scalar_type & | b () const |
| scalar_type & | r () |
| scalar_type & | g () |
| scalar_type & | b () |
| const scalar_type & | s () const |
| const scalar_type & | t () const |
| const scalar_type & | p () const |
| scalar_type & | s () |
| scalar_type & | t () |
| scalar_type & | p () |
| Vector2< scalar_type > | xy () const |
| Vector2< scalar_type > | st () const |
| Vector3 | operator+ (const Vector3 &other) const |
| Vector3 | operator- (const Vector3 &other) const |
| Vector3 | operator* (const Vector3 &other) const |
| Vector3 | operator/ (const Vector3 &other) const |
| Vector3 | operator+ (scalar_type val) const |
| Vector3 | operator- (scalar_type val) const |
| Vector3 | operator* (scalar_type val) const |
| Vector3 | operator/ (scalar_type val) const |
| Vector3 | operator- () const |
| Vector3 & | operator+= (const Vector3 &other) |
| Vector3 & | operator-= (const Vector3 &other) |
| Vector3 & | operator*= (const Vector3 &other) |
| Vector3 & | operator/= (const Vector3 &other) |
| Vector3 & | operator+= (scalar_type val) |
| Vector3 & | operator-= (scalar_type val) |
| Vector3 & | operator*= (scalar_type val) |
| Vector3 & | operator/= (scalar_type val) |
| Vector3 & | operator= (const Vector3 &other) |
| Vector3 & | operator= (scalar_type val) |
| bool | operator== (const Vector3 &other) const |
| bool | operator!= (const Vector3 &other) const |
| bool | operator< (const Vector3 &other) const |
| scalar_type & | operator[] (unsigned i) |
| const scalar_type & | operator[] (unsigned i) const |
| scalar_type | length () const |
| scalar_type | lengthSquared () const |
| bool | isNull () const |
| const Vector3 & | normalize () |
Static Public Attributes | |
| static const int | scalar_count = 3 |
Protected Attributes | |
| scalar_type | mScalar [scalar_count] |
| vl::Vector3< scalar_type >::Vector3 | ( | const Vector3< scalar_type > & | other | ) | [inline] |
| vl::Vector3< scalar_type >::Vector3 | ( | ) | [inline] |
| vl::Vector3< scalar_type >::Vector3 | ( | const T & | other | ) | [inline, explicit] |
| vl::Vector3< scalar_type >::Vector3 | ( | scalar_type | x, | |
| scalar_type | y, | |||
| scalar_type | z | |||
| ) | [inline, explicit] |
| vl::Vector3< scalar_type >::Vector3 | ( | const Vector2< scalar_type > & | v, | |
| scalar_type | z | |||
| ) | [inline, explicit] |
| scalar_type* vl::Vector3< scalar_type >::ptr | ( | ) | [inline] |
| const scalar_type* vl::Vector3< scalar_type >::ptr | ( | ) | const [inline] |
| const scalar_type& vl::Vector3< scalar_type >::x | ( | ) | const [inline] |
| const scalar_type& vl::Vector3< scalar_type >::y | ( | ) | const [inline] |
| const scalar_type& vl::Vector3< scalar_type >::z | ( | ) | const [inline] |
| scalar_type& vl::Vector3< scalar_type >::x | ( | ) | [inline] |
| scalar_type& vl::Vector3< scalar_type >::y | ( | ) | [inline] |
| scalar_type& vl::Vector3< scalar_type >::z | ( | ) | [inline] |
| const scalar_type& vl::Vector3< scalar_type >::r | ( | ) | const [inline] |
| const scalar_type& vl::Vector3< scalar_type >::g | ( | ) | const [inline] |
| const scalar_type& vl::Vector3< scalar_type >::b | ( | ) | const [inline] |
| scalar_type& vl::Vector3< scalar_type >::r | ( | ) | [inline] |
| scalar_type& vl::Vector3< scalar_type >::g | ( | ) | [inline] |
| scalar_type& vl::Vector3< scalar_type >::b | ( | ) | [inline] |
| const scalar_type& vl::Vector3< scalar_type >::s | ( | ) | const [inline] |
| const scalar_type& vl::Vector3< scalar_type >::t | ( | ) | const [inline] |
| const scalar_type& vl::Vector3< scalar_type >::p | ( | ) | const [inline] |
| scalar_type& vl::Vector3< scalar_type >::s | ( | ) | [inline] |
| scalar_type& vl::Vector3< scalar_type >::t | ( | ) | [inline] |
| scalar_type& vl::Vector3< scalar_type >::p | ( | ) | [inline] |
| Vector2<scalar_type> vl::Vector3< scalar_type >::xy | ( | ) | const [inline] |
| Vector2<scalar_type> vl::Vector3< scalar_type >::st | ( | ) | const [inline] |
| Vector3 vl::Vector3< scalar_type >::operator+ | ( | const Vector3< scalar_type > & | other | ) | const [inline] |
| Vector3 vl::Vector3< scalar_type >::operator- | ( | const Vector3< scalar_type > & | other | ) | const [inline] |
| Vector3 vl::Vector3< scalar_type >::operator* | ( | const Vector3< scalar_type > & | other | ) | const [inline] |
| Vector3 vl::Vector3< scalar_type >::operator/ | ( | const Vector3< scalar_type > & | other | ) | const [inline] |
| Vector3 vl::Vector3< scalar_type >::operator+ | ( | scalar_type | val | ) | const [inline] |
| Vector3 vl::Vector3< scalar_type >::operator- | ( | scalar_type | val | ) | const [inline] |
| Vector3 vl::Vector3< scalar_type >::operator* | ( | scalar_type | val | ) | const [inline] |
| Vector3 vl::Vector3< scalar_type >::operator/ | ( | scalar_type | val | ) | const [inline] |
| Vector3 vl::Vector3< scalar_type >::operator- | ( | ) | const [inline] |
| Vector3& vl::Vector3< scalar_type >::operator+= | ( | const Vector3< scalar_type > & | other | ) | [inline] |
| Vector3& vl::Vector3< scalar_type >::operator-= | ( | const Vector3< scalar_type > & | other | ) | [inline] |
| Vector3& vl::Vector3< scalar_type >::operator*= | ( | const Vector3< scalar_type > & | other | ) | [inline] |
| Vector3& vl::Vector3< scalar_type >::operator/= | ( | const Vector3< scalar_type > & | other | ) | [inline] |
| Vector3& vl::Vector3< scalar_type >::operator+= | ( | scalar_type | val | ) | [inline] |
| Vector3& vl::Vector3< scalar_type >::operator-= | ( | scalar_type | val | ) | [inline] |
| Vector3& vl::Vector3< scalar_type >::operator*= | ( | scalar_type | val | ) | [inline] |
| Vector3& vl::Vector3< scalar_type >::operator/= | ( | scalar_type | val | ) | [inline] |
| Vector3& vl::Vector3< scalar_type >::operator= | ( | const Vector3< scalar_type > & | other | ) | [inline] |
| Vector3& vl::Vector3< scalar_type >::operator= | ( | scalar_type | val | ) | [inline] |
| bool vl::Vector3< scalar_type >::operator== | ( | const Vector3< scalar_type > & | other | ) | const [inline] |
| bool vl::Vector3< scalar_type >::operator!= | ( | const Vector3< scalar_type > & | other | ) | const [inline] |
| bool vl::Vector3< scalar_type >::operator< | ( | const Vector3< scalar_type > & | other | ) | const [inline] |
| scalar_type& vl::Vector3< scalar_type >::operator[] | ( | unsigned | i | ) | [inline] |
| const scalar_type& vl::Vector3< scalar_type >::operator[] | ( | unsigned | i | ) | const [inline] |
| scalar_type vl::Vector3< scalar_type >::length | ( | ) | const [inline] |
| scalar_type vl::Vector3< scalar_type >::lengthSquared | ( | ) | const [inline] |
| bool vl::Vector3< scalar_type >::isNull | ( | ) | const [inline] |
| const Vector3& vl::Vector3< scalar_type >::normalize | ( | ) | [inline] |
const int vl::Vector3< scalar_type >::scalar_count = 3 [static] |
scalar_type vl::Vector3< scalar_type >::mScalar[scalar_count] [protected] |