Public Member Functions
rtc::Vec3< T > Class Template Reference

#include <rtcVec3.h>

Inheritance diagram for rtc::Vec3< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

Vec3< T > cross (const Vec3< T > &v) const
Vec3< T > operator% (const Vec3< T > &v) const
void set (const T x0, const T x1, const T x2)
 Vec3 ()
 Vec3 (const T *d)
 Vec3 (const T a)
 Vec3 (const T x0, const T x1, const T x2)
 Vec3 (const Vec< T, 3 > &v)
template<class U >
 Vec3 (const Vec< U, 3 > &v)

Detailed Description

template<class T>
class rtc::Vec3< T >

A 3-D vector.

Definition at line 38 of file rtcVec3.h.


Constructor & Destructor Documentation

template<class T >
rtc::Vec3< T >::Vec3 ( ) [inline]

Ctor that doesn't initialize.

Definition at line 84 of file rtcVec3.h.

template<class T>
rtc::Vec3< T >::Vec3 ( const T *  d) [inline]

Ctor that intalizes from array.

Definition at line 89 of file rtcVec3.h.

template<class T>
rtc::Vec3< T >::Vec3 ( const T  a) [inline]

Ctor that intalizes all elements from a scalar.

Definition at line 94 of file rtcVec3.h.

template<class T>
rtc::Vec3< T >::Vec3 ( const T  x0,
const T  x1,
const T  x2 
) [inline]

Ctor that initializes vector with given values.

Definition at line 99 of file rtcVec3.h.

template<class T>
rtc::Vec3< T >::Vec3 ( const Vec< T, 3 > &  v) [inline]

Ctor that initializes an Vec3<T> with an Vec<T,3>.

Definition at line 106 of file rtcVec3.h.

template<class T >
template<class U >
rtc::Vec3< T >::Vec3 ( const Vec< U, 3 > &  v) [inline]

Casting Ctor that initializes an Vec3<T> with a Vec<U,3>.

Definition at line 113 of file rtcVec3.h.


Member Function Documentation

template<class T>
Vec3< T > rtc::Vec3< T >::cross ( const Vec3< T > &  v) const [inline]

Calculate the cross product.

Parameters:
va 3-vector
Returns:
the cross product: "this" cross "v"

Definition at line 132 of file rtcVec3.h.

template<class T>
Vec3< T > rtc::Vec3< T >::operator% ( const Vec3< T > &  v) const [inline]

cross product: only defined for Vec3* as specialization

See also:
Vec3::cross

Definition at line 141 of file rtcVec3.h.

template<class T>
void rtc::Vec3< T >::set ( const T  x0,
const T  x1,
const T  x2 
) [inline]

Set vector.

Reimplemented in rtc::EulerAngles< T >.

Definition at line 121 of file rtcVec3.h.


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


rtc
Author(s): Benjamin Pitzer
autogenerated on Mon Oct 6 2014 10:07:35