PBRT
Imath::Vec4< T > Class Template Reference

List of all members.

Public Types

typedef T BaseType

Public Member Functions

T & operator[] (int i)
const T & operator[] (int i) const
 Vec4 (T a)
 Vec4 (T a, T b, T c, T d)
 Vec4 (const Vec4 &v)
template<class S >
 Vec4 (const Vec4< S > &v)
const Vec4operator= (const Vec4 &v)
template<class S >
 Vec4 (const Vec3< S > &v)
template<class S >
bool operator== (const Vec4< S > &v) const
template<class S >
bool operator!= (const Vec4< S > &v) const
bool equalWithAbsError (const Vec4< T > &v, T e) const
bool equalWithRelError (const Vec4< T > &v, T e) const
dot (const Vec4 &v) const
operator^ (const Vec4 &v) const
const Vec4operator+= (const Vec4 &v)
Vec4 operator+ (const Vec4 &v) const
const Vec4operator-= (const Vec4 &v)
Vec4 operator- (const Vec4 &v) const
Vec4 operator- () const
const Vec4negate ()
const Vec4operator*= (const Vec4 &v)
const Vec4operator*= (T a)
Vec4 operator* (const Vec4 &v) const
Vec4 operator* (T a) const
const Vec4operator/= (const Vec4 &v)
const Vec4operator/= (T a)
Vec4 operator/ (const Vec4 &v) const
Vec4 operator/ (T a) const
length () const
length2 () const
const Vec4normalize ()
const Vec4normalizeExc () throw (Iex::MathExc)
const Vec4normalizeNonNull ()
Vec4< T > normalized () const
Vec4< T > normalizedExc () const throw (Iex::MathExc)
Vec4< T > normalizedNonNull () const
template<>
short length () const
template<>
const Vec4< short > & normalize ()
template<>
const Vec4< short > & normalizeExc () throw(Iex::MathExc)
template<>
const Vec4< short > & normalizeNonNull ()
template<>
Vec4< short > normalized () const
template<>
Vec4< short > normalizedExc () const throw(Iex::MathExc)
template<>
Vec4< short > normalizedNonNull () const
template<>
int length () const
template<>
const Vec4< int > & normalize ()
template<>
const Vec4< int > & normalizeExc () throw(Iex::MathExc)
template<>
const Vec4< int > & normalizeNonNull ()
template<>
Vec4< int > normalized () const
template<>
Vec4< int > normalizedExc () const throw(Iex::MathExc)
template<>
Vec4< int > normalizedNonNull () const
template<>
short length () const
template<>
const Vec4< short > & normalize ()
template<>
const Vec4< short > & normalizeExc () throw(Iex::MathExc)
template<>
const Vec4< short > & normalizeNonNull ()
template<>
Vec4< short > normalized () const
template<>
Vec4< short > normalizedExc () const throw(Iex::MathExc)
template<>
Vec4< short > normalizedNonNull () const
template<>
int length () const
template<>
const Vec4< int > & normalize ()
template<>
const Vec4< int > & normalizeExc () throw(Iex::MathExc)
template<>
const Vec4< int > & normalizeNonNull ()
template<>
Vec4< int > normalized () const
template<>
Vec4< int > normalizedExc () const throw(Iex::MathExc)
template<>
Vec4< 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
w

template<class T>
class Imath::Vec4< T >


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