PBRT
Imath::Vec3< T > Class Template Reference
Inheritance diagram for Imath::Vec3< T >:
Imath::Color3< T > Imath::Euler< T >

List of all members.

Public Types

typedef T BaseType

Public Member Functions

T & operator[] (int i)
const T & operator[] (int i) const
 Vec3 (T a)
 Vec3 (T a, T b, T c)
 Vec3 (const Vec3 &v)
template<class S >
 Vec3 (const Vec3< S > &v)
const Vec3operator= (const Vec3 &v)
template<class S >
 Vec3 (const Vec4< S > &v)
template<class S >
 Vec3 (const Vec4< S > &v, InfException)
template<class S >
void setValue (S a, S b, S c)
template<class S >
void setValue (const Vec3< S > &v)
template<class S >
void getValue (S &a, S &b, S &c) const
template<class S >
void getValue (Vec3< S > &v) const
T * getValue ()
const T * getValue () const
template<class S >
bool operator== (const Vec3< S > &v) const
template<class S >
bool operator!= (const Vec3< S > &v) const
bool equalWithAbsError (const Vec3< T > &v, T e) const
bool equalWithRelError (const Vec3< T > &v, T e) const
dot (const Vec3 &v) const
operator^ (const Vec3 &v) const
Vec3 cross (const Vec3 &v) const
const Vec3operator%= (const Vec3 &v)
Vec3 operator% (const Vec3 &v) const
const Vec3operator+= (const Vec3 &v)
Vec3 operator+ (const Vec3 &v) const
const Vec3operator-= (const Vec3 &v)
Vec3 operator- (const Vec3 &v) const
Vec3 operator- () const
const Vec3negate ()
const Vec3operator*= (const Vec3 &v)
const Vec3operator*= (T a)
Vec3 operator* (const Vec3 &v) const
Vec3 operator* (T a) const
const Vec3operator/= (const Vec3 &v)
const Vec3operator/= (T a)
Vec3 operator/ (const Vec3 &v) const
Vec3 operator/ (T a) const
length () const
length2 () const
const Vec3normalize ()
const Vec3normalizeExc () throw (Iex::MathExc)
const Vec3normalizeNonNull ()
Vec3< T > normalized () const
Vec3< T > normalizedExc () const throw (Iex::MathExc)
Vec3< T > normalizedNonNull () const
template<>
short length () const
template<>
const Vec3< short > & normalize ()
template<>
const Vec3< short > & normalizeExc () throw(Iex::MathExc)
template<>
const Vec3< short > & normalizeNonNull ()
template<>
Vec3< short > normalized () const
template<>
Vec3< short > normalizedExc () const throw(Iex::MathExc)
template<>
Vec3< short > normalizedNonNull () const
template<>
int length () const
template<>
const Vec3< int > & normalize ()
template<>
const Vec3< int > & normalizeExc () throw(Iex::MathExc)
template<>
const Vec3< int > & normalizeNonNull ()
template<>
Vec3< int > normalized () const
template<>
Vec3< int > normalizedExc () const throw(Iex::MathExc)
template<>
Vec3< int > normalizedNonNull () const
template<>
short length () const
template<>
const Vec3< short > & normalize ()
template<>
const Vec3< short > & normalizeExc () throw(Iex::MathExc)
template<>
const Vec3< short > & normalizeNonNull ()
template<>
Vec3< short > normalized () const
template<>
Vec3< short > normalizedExc () const throw(Iex::MathExc)
template<>
Vec3< short > normalizedNonNull () const
template<>
int length () const
template<>
const Vec3< int > & normalize ()
template<>
const Vec3< int > & normalizeExc () throw(Iex::MathExc)
template<>
const Vec3< int > & normalizeNonNull ()
template<>
Vec3< int > normalized () const
template<>
Vec3< int > normalizedExc () const throw(Iex::MathExc)
template<>
Vec3< int > normalizedNonNull () const

Static Public Member Functions

static unsigned int dimensions ()
static T baseTypeMin ()
static T baseTypeMax ()
static T baseTypeSmallest ()
static T baseTypeEpsilon ()

Public Attributes

x
y
z

template<class T>
class Imath::Vec3< T >


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