#include <Vector4.h>
Public Member Functions | |
BasicVector4 () | |
BasicVector4 (Element x_, Element y_, Element z_, Element w_) | |
BasicVector4 (const BasicVector3< Element > &self, Element w_) | |
Element & | x () |
Element & | y () |
Element & | z () |
Element & | w () |
const Element & | x () const |
const Element & | y () const |
const Element & | z () const |
const Element & | w () const |
Element | index (std::size_t i) const |
Element & | index (std::size_t i) |
bool | operator== (const BasicVector4 &other) const |
bool | operator!= (const BasicVector4 &other) const |
template<typename OtherElement > | |
BasicVector4< Element > | operator+ (const BasicVector4< OtherElement > &other) const |
template<typename OtherElement > | |
void | operator+= (const BasicVector4< OtherElement > &other) |
template<typename OtherElement > | |
BasicVector4< Element > | operator- (const BasicVector4< OtherElement > &other) const |
template<typename OtherElement > | |
void | operator-= (const BasicVector4< OtherElement > &other) |
template<typename OtherElement > | |
BasicVector4< Element > | operator* (const BasicVector4< OtherElement > &other) const |
template<typename OtherElement > | |
void | operator*= (const BasicVector4< OtherElement > &other) |
template<typename OtherElement > | |
BasicVector4< Element > | operator* (const OtherElement &other) const |
template<typename OtherElement > | |
void | operator*= (const OtherElement &other) |
template<typename OtherElement > | |
BasicVector4< Element > | operator/ (const BasicVector4< OtherElement > &other) const |
template<typename OtherElement > | |
void | operator/= (const BasicVector4< OtherElement > &other) |
template<typename OtherElement > | |
BasicVector4< Element > | operator/ (const OtherElement &other) const |
template<typename OtherElement > | |
void | operator/= (const OtherElement &other) |
template<typename OtherT > | |
Element | dot (const BasicVector4< OtherT > &other) const |
BasicVector3< Element > | getProjected () |
std::string | toString () const |
operator const Element * () const | |
operator Element * () | |
BasicVector3< Element > & | getVector3 () |
const BasicVector3< Element > & | getVector3 () const |
Private Attributes | |
Element | m_elements [4] |
Definition at line 22 of file Vector4.h.
BasicVector4< Element >::BasicVector4 | ( | ) | [inline] |
BasicVector4< Element >::BasicVector4 | ( | Element | x_, | |
Element | y_, | |||
Element | z_, | |||
Element | w_ | |||
) | [inline] |
BasicVector4< Element >::BasicVector4 | ( | const BasicVector3< Element > & | self, | |
Element | w_ | |||
) | [inline] |
Element BasicVector4< Element >::dot | ( | const BasicVector4< OtherT > & | other | ) | const [inline] |
BasicVector3<Element> BasicVector4< Element >::getProjected | ( | ) | [inline] |
const BasicVector3<Element>& BasicVector4< Element >::getVector3 | ( | ) | const [inline] |
BasicVector3<Element>& BasicVector4< Element >::getVector3 | ( | ) | [inline] |
Definition at line 291 of file Vector4.h.
Referenced by viewer_from_transformed_viewer().
Element& BasicVector4< Element >::index | ( | std::size_t | i | ) | [inline] |
Element BasicVector4< Element >::index | ( | std::size_t | i | ) | const [inline] |
BasicVector4< Element >::operator const Element * | ( | ) | const [inline] |
BasicVector4< Element >::operator Element * | ( | ) | [inline] |
bool BasicVector4< Element >::operator!= | ( | const BasicVector4< Element > & | other | ) | const [inline] |
Compare this BasicVector4 against another for inequality.
BasicVector4<Element> BasicVector4< Element >::operator* | ( | const OtherElement & | other | ) | const [inline] |
BasicVector4<Element> BasicVector4< Element >::operator* | ( | const BasicVector4< OtherElement > & | other | ) | const [inline] |
void BasicVector4< Element >::operator*= | ( | const OtherElement & | other | ) | [inline] |
void BasicVector4< Element >::operator*= | ( | const BasicVector4< OtherElement > & | other | ) | [inline] |
BasicVector4<Element> BasicVector4< Element >::operator+ | ( | const BasicVector4< OtherElement > & | other | ) | const [inline] |
void BasicVector4< Element >::operator+= | ( | const BasicVector4< OtherElement > & | other | ) | [inline] |
BasicVector4<Element> BasicVector4< Element >::operator- | ( | const BasicVector4< OtherElement > & | other | ) | const [inline] |
void BasicVector4< Element >::operator-= | ( | const BasicVector4< OtherElement > & | other | ) | [inline] |
BasicVector4<Element> BasicVector4< Element >::operator/ | ( | const OtherElement & | other | ) | const [inline] |
BasicVector4<Element> BasicVector4< Element >::operator/ | ( | const BasicVector4< OtherElement > & | other | ) | const [inline] |
void BasicVector4< Element >::operator/= | ( | const OtherElement & | other | ) | [inline] |
void BasicVector4< Element >::operator/= | ( | const BasicVector4< OtherElement > & | other | ) | [inline] |
bool BasicVector4< Element >::operator== | ( | const BasicVector4< Element > & | other | ) | const [inline] |
Compare this BasicVector4 against another for equality.
std::string BasicVector4< Element >::toString | ( | ) | const [inline] |
const Element& BasicVector4< Element >::w | ( | ) | const [inline] |
Element& BasicVector4< Element >::w | ( | ) | [inline] |
Definition at line 62 of file Vector4.h.
Referenced by BasicVector4< float >::dot(), and vector4_equal_epsilon().
const Element& BasicVector4< Element >::x | ( | ) | const [inline] |
Element& BasicVector4< Element >::x | ( | ) | [inline] |
Definition at line 50 of file Vector4.h.
Referenced by BasicVector4< float >::dot(), BasicVector4< float >::operator*(), BasicVector4< float >::operator+(), BasicVector4< float >::operator-(), BasicVector4< float >::operator/(), and vector4_equal_epsilon().
const Element& BasicVector4< Element >::y | ( | ) | const [inline] |
Element& BasicVector4< Element >::y | ( | ) | [inline] |
Definition at line 54 of file Vector4.h.
Referenced by BasicVector4< float >::dot(), BasicVector4< float >::operator*(), BasicVector4< float >::operator+(), BasicVector4< float >::operator-(), BasicVector4< float >::operator/(), and vector4_equal_epsilon().
const Element& BasicVector4< Element >::z | ( | ) | const [inline] |
Element& BasicVector4< Element >::z | ( | ) | [inline] |
Definition at line 58 of file Vector4.h.
Referenced by BasicVector4< float >::dot(), BasicVector4< float >::operator*(), BasicVector4< float >::operator+(), BasicVector4< float >::operator-(), BasicVector4< float >::operator/(), and vector4_equal_epsilon().
Element BasicVector4< Element >::m_elements[4] [private] |
Definition at line 22 of file Vector4.h.
Referenced by BasicVector4< float >::dot(), BasicVector4< float >::getVector3(), BasicVector4< float >::index(), BasicVector4< float >::operator float *(), BasicVector4< float >::operator*(), BasicVector4< float >::operator+(), BasicVector4< float >::operator-(), BasicVector4< float >::operator/(), BasicVector4< float >::toString(), BasicVector4< float >::w(), BasicVector4< float >::y(), and BasicVector4< float >::z().