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

#include <rtcVec2.h>

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

List of all members.

Public Member Functions

Vec2< T > perp () const
void set (const T x0, const T x1)
 Vec2 ()
 Vec2 (const T *d)
 Vec2 (const T a)
 Vec2 (const T x0, const T x1)
 Vec2 (const Vec< T, 2 > &v)
template<class U >
 Vec2 (const Vec< U, 2 > &v)

Detailed Description

template<class T>
class rtc::Vec2< T >

A 2-D vector.

Definition at line 37 of file rtcVec2.h.


Constructor & Destructor Documentation

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

Ctor that doesn't initialize.

Definition at line 77 of file rtcVec2.h.

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

Ctor that intalizes from array.

Definition at line 83 of file rtcVec2.h.

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

Ctor that intalizes all elements from a scalar.

Definition at line 88 of file rtcVec2.h.

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

Ctor that initializes vector with given values.

Definition at line 93 of file rtcVec2.h.

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

Ctor that initializes an Vec2<T> with a Vec<T,2>.

Definition at line 100 of file rtcVec2.h.

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

Casting Ctor that initializes an Vec2<T> with a Vec<U,2>.

Definition at line 107 of file rtcVec2.h.


Member Function Documentation

template<class T >
Vec2< T > rtc::Vec2< T >::perp ( ) const [inline]

Perp Operator

Definition at line 121 of file rtcVec2.h.

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

Set vector.

Definition at line 114 of file rtcVec2.h.


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


rtc
Author(s): Benjamin Pitzer
autogenerated on Thu Jan 2 2014 11:04:54