UnitVec Class Template Reference

#include <UnitVec.h>

Inheritance diagram for UnitVec:

Vec< 3, Real, S >

List of all members.


Detailed Description

template<int S>
class SimTK::UnitVec< S >

This class is a Vec3 plus an ironclad guarantee either that:

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)
UnitVecoperator= (const UnitVec &u)
template<int S2>
UnitVecoperator= (const UnitVec< S2 > &u)
const BaseVecasVec3 () const
UnitVec< 1 > negate () const
UnitVec< 1 > operator- () const
const TransposeTypeoperator~ () const
TransposeTypeoperator~ ()
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)

Member Typedef Documentation

typedef Vec<3,Real,S> BaseVec

typedef UnitRow<S> TransposeType


Constructor & Destructor Documentation

UnitVec (  )  [inline]

UnitVec ( const UnitVec< S > &  u  )  [inline]

UnitVec ( const UnitVec< S2 > &  u  )  [inline]

UnitVec ( const BaseVec v  )  [inline, explicit]

UnitVec ( const Vec< 3, Real, S2 > &  v  )  [inline, explicit]

UnitVec ( const Real &  x,
const Real &  y,
const Real &  z 
) [inline]

UnitVec ( int  axis  )  [inline, explicit]

UnitVec ( const BaseVec v,
bool   
) [inline]

UnitVec ( const Vec< 3, Real, S2 > &  v,
bool   
) [inline]


Member Function Documentation

UnitVec& operator= ( const UnitVec< S > &  u  )  [inline]

UnitVec& operator= ( const UnitVec< S2 > &  u  )  [inline]

const BaseVec& asVec3 (  )  const [inline]

UnitVec<1> negate (  )  const [inline]

Reimplemented from Vec< 3, Real, S >.

Referenced by UnitVec< 1 >::operator-().

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]

Reimplemented from Vec< 3, Real, S >.

Referenced by UnitVec::perp().

UnitVec< 1 > perp (  )  const [inline]

References UnitVec::abs().


The documentation for this class was generated from the following file:

Generated on Fri Sep 26 07:44:29 2008 for SimTKcore by  doxygen 1.5.6