#include <UnitVec.h>
Public Types | |
typedef Vec< 3, Real, S > | BaseVec |
typedef UnitRow< S > | TransposeType |
Public Member Functions | |
UnitVec () | |
UnitVec (const UnitVec &u) | |
template<int S2> | |
UnitVec (const UnitVec< S2 > &u) | |
UnitVec (const BaseVec &v) | |
template<int S2> | |
UnitVec (const Vec< 3, Real, S2 > &v) | |
UnitVec (const Real &x, const Real &y, const Real &z) | |
UnitVec (int axis) | |
UnitVec & | operator= (const UnitVec &u) |
template<int S2> | |
UnitVec & | operator= (const UnitVec< S2 > &u) |
const BaseVec & | asVec3 () const |
UnitVec< 1 > | negate () const |
UnitVec< 1 > | operator- () const |
const TransposeType & | operator~ () const |
TransposeType & | operator~ () |
const Real & | operator[] (int i) const |
const Real & | operator() (int i) const |
UnitVec< 1 > | abs () const |
UnitVec< 1 > | perp () const |
UnitVec (const BaseVec &v, bool) | |
template<int S2> | |
UnitVec (const Vec< 3, Real, S2 > &v, bool) |
typedef UnitRow<S> TransposeType |
UnitVec | ( | ) | [inline] |
UnitVec | ( | const Real & | x, | |
const Real & | y, | |||
const Real & | z | |||
) | [inline] |
UnitVec | ( | int | axis | ) | [inline, explicit] |
const BaseVec& asVec3 | ( | ) | const [inline] |
Referenced by UnitVec< 1 >::abs(), UnitVec< 1 >::negate(), and SimTK::operator*().
UnitVec<1> negate | ( | ) | const [inline] |
UnitVec<1> operator- | ( | ) | const [inline] |
Reimplemented from Vec< 3, Real, S >.
const TransposeType& operator~ | ( | ) | const [inline] |
Reimplemented from Vec< 3, Real, S >.
TransposeType& operator~ | ( | ) | [inline] |
Reimplemented from Vec< 3, Real, S >.
const Real& operator[] | ( | int | i | ) | const [inline] |
Reimplemented from Vec< 3, Real, S >.
const Real& operator() | ( | int | i | ) | const [inline] |
Reimplemented from Vec< 3, Real, S >.
UnitVec<1> abs | ( | ) | const [inline] |
UnitVec< 1 > perp | ( | ) | const [inline] |
References UnitVec::abs().