HDK
Vec4< T > Class Template Reference

`#include <ImathForward.h>`

## Public Types

typedef T BaseType

## Public Member Functions

Toperator[] (int i)

const Toperator[] (int i) const

Vec4 ()

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

T dot (const Vec4 &v) const

T 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

T length () const

T length2 () const

const Vec4normalize ()

const Vec4normalizeExc ()

const Vec4normalizeNonNull ()

Vec4< Tnormalized () const

Vec4< TnormalizedExc () const

Vec4< TnormalizedNonNull () const

template<>
short length () const

template<>
const Vec4< short > & normalize ()

template<>
const Vec4< short > & normalizeExc ()

template<>
const Vec4< short > & normalizeNonNull ()

template<>
Vec4< short > normalized () const

template<>
Vec4< short > normalizedExc () const

template<>
Vec4< short > normalizedNonNull () const

template<>
int length () const

template<>
const Vec4< int > & normalize ()

template<>
const Vec4< int > & normalizeExc ()

template<>
const Vec4< int > & normalizeNonNull ()

template<>
Vec4< intnormalized () const

template<>
Vec4< intnormalizedExc () const

template<>
Vec4< intnormalizedNonNull () const

## Static Public Member Functions

static unsigned int dimensions ()

static T baseTypeMin ()

static T baseTypeMax ()

static T baseTypeSmallest ()

static T baseTypeEpsilon ()

T x

T y

T z

T w

## Detailed Description

### template<class T> class Vec4< T >

Definition at line 65 of file ImathForward.h.

## Member Typedef Documentation

template<class T>
 typedef T Vec4< T >::BaseType

Definition at line 653 of file ImathVec.h.

## Constructor & Destructor Documentation

template<class T >
 Vec4< T >::Vec4 ( )
inline

Definition at line 1783 of file ImathVec.h.

template<class T >
 Vec4< T >::Vec4 ( T a )
inlineexplicit

Definition at line 1790 of file ImathVec.h.

template<class T >
 Vec4< T >::Vec4 ( T a, T b, T c, T d )
inline

Definition at line 1797 of file ImathVec.h.

template<class T >
 Vec4< T >::Vec4 ( const Vec4< T > & v )
inline

Definition at line 1807 of file ImathVec.h.

template<class T >
template<class S >
 Vec4< T >::Vec4 ( const Vec4< S > & v )
inline

Definition at line 1818 of file ImathVec.h.

template<class T >
template<class S >
 Vec4< T >::Vec4 ( const Vec3< S > & v )
inlineexplicit

Definition at line 1840 of file ImathVec.h.

## Member Function Documentation

template<class T>
 static T Vec4< T >::baseTypeEpsilon ( )
inlinestatic

Definition at line 644 of file ImathVec.h.

template<class T>
 static T Vec4< T >::baseTypeMax ( )
inlinestatic

Definition at line 642 of file ImathVec.h.

template<class T>
 static T Vec4< T >::baseTypeMin ( )
inlinestatic

Definition at line 641 of file ImathVec.h.

template<class T>
 static T Vec4< T >::baseTypeSmallest ( )
inlinestatic

Definition at line 643 of file ImathVec.h.

template<class T>
 static unsigned int Vec4< T >::dimensions ( )
inlinestatic

Definition at line 634 of file ImathVec.h.

template<class T >
 T Vec4< T >::dot ( const Vec4< T > & v ) const
inline

Definition at line 1888 of file ImathVec.h.

template<class T >
 bool Vec4< T >::equalWithAbsError ( const Vec4< T > & v, T e ) const

Definition at line 1866 of file ImathVec.h.

template<class T >
 bool Vec4< T >::equalWithRelError ( const Vec4< T > & v, T e ) const

Definition at line 1877 of file ImathVec.h.

template<class T >
 T Vec4< T >::length ( void ) const
inline

Definition at line 2067 of file ImathVec.h.

template<>
 short Vec4< short >::length ( ) const
template<>
 int Vec4< int >::length ( ) const
template<class T >
 T Vec4< T >::length2 ( ) const
inline

Definition at line 2079 of file ImathVec.h.

template<class T >
 const Vec4< T > & Vec4< T >::negate ( )
inline

Definition at line 1946 of file ImathVec.h.

template<class T >
 const Vec4< T > & Vec4< T >::normalize ( )

Definition at line 2086 of file ImathVec.h.

template<>
 const Vec4< short > & Vec4< short >::normalize ( )
template<>
 const Vec4< int > & Vec4< int >::normalize ( )
template<class T >
 Vec4< T > Vec4< T >::normalized ( ) const

Definition at line 2138 of file ImathVec.h.

template<>
 Vec4< short > Vec4< short >::normalized ( ) const
template<>
 Vec4< int > Vec4< int >::normalized ( ) const
template<class T >
 Vec4< T > Vec4< T >::normalizedExc ( ) const

Definition at line 2150 of file ImathVec.h.

template<>
 Vec4< short > Vec4< short >::normalizedExc ( ) const
template<>
 Vec4< int > Vec4< int >::normalizedExc ( ) const
template<class T >
 Vec4< T > Vec4< T >::normalizedNonNull ( ) const
inline

Definition at line 2163 of file ImathVec.h.

template<>
 Vec4< short > Vec4< short >::normalizedNonNull ( ) const
template<>
 Vec4< int > Vec4< int >::normalizedNonNull ( ) const
template<class T >
 const Vec4< T > & Vec4< T >::normalizeExc ( )

Definition at line 2109 of file ImathVec.h.

template<>
 const Vec4< short > & Vec4< short >::normalizeExc ( )
template<>
 const Vec4< int > & Vec4< int >::normalizeExc ( )
template<class T >
 const Vec4< T > & Vec4< T >::normalizeNonNull ( )
inline

Definition at line 2126 of file ImathVec.h.

template<>
 const Vec4< short > & Vec4< short >::normalizeNonNull ( )
template<>
 const Vec4< int > & Vec4< int >::normalizeNonNull ( )
template<class T >
template<class S >
 bool Vec4< T >::operator!= ( const Vec4< S > & v ) const
inline

Definition at line 1859 of file ImathVec.h.

template<class T >
 Vec4< T > Vec4< T >::operator* ( const Vec4< T > & v ) const
inline

Definition at line 1979 of file ImathVec.h.

template<class T >
 Vec4< T > Vec4< T >::operator* ( T a ) const
inline

Definition at line 1986 of file ImathVec.h.

template<class T >
 const Vec4< T > & Vec4< T >::operator*= ( const Vec4< T > & v )
inline

Definition at line 1957 of file ImathVec.h.

template<class T >
 const Vec4< T > & Vec4< T >::operator*= ( T a )
inline

Definition at line 1968 of file ImathVec.h.

template<class T >
 Vec4< T > Vec4< T >::operator+ ( const Vec4< T > & v ) const
inline

Definition at line 1914 of file ImathVec.h.

template<class T >
 const Vec4< T > & Vec4< T >::operator+= ( const Vec4< T > & v )
inline

Definition at line 1903 of file ImathVec.h.

template<class T >
 Vec4< T > Vec4< T >::operator- ( const Vec4< T > & v ) const
inline

Definition at line 1932 of file ImathVec.h.

template<class T >
 Vec4< T > Vec4< T >::operator- ( ) const
inline

Definition at line 1939 of file ImathVec.h.

template<class T >
 const Vec4< T > & Vec4< T >::operator-= ( const Vec4< T > & v )
inline

Definition at line 1921 of file ImathVec.h.

template<class T >
 Vec4< T > Vec4< T >::operator/ ( const Vec4< T > & v ) const
inline

Definition at line 2015 of file ImathVec.h.

template<class T >
 Vec4< T > Vec4< T >::operator/ ( T a ) const
inline

Definition at line 2022 of file ImathVec.h.

template<class T >
 const Vec4< T > & Vec4< T >::operator/= ( const Vec4< T > & v )
inline

Definition at line 1993 of file ImathVec.h.

template<class T >
 const Vec4< T > & Vec4< T >::operator/= ( T a )
inline

Definition at line 2004 of file ImathVec.h.

template<class T >
 const Vec4< T > & Vec4< T >::operator= ( const Vec4< T > & v )
inline

Definition at line 1828 of file ImathVec.h.

template<class T >
template<class S >
 bool Vec4< T >::operator== ( const Vec4< S > & v ) const
inline

Definition at line 1851 of file ImathVec.h.

template<class T >
 T & Vec4< T >::operator[] ( int i )
inline

Definition at line 1769 of file ImathVec.h.

template<class T >
 const T & Vec4< T >::operator[] ( int i ) const
inline

Definition at line 1776 of file ImathVec.h.

template<class T >
 T Vec4< T >::operator^ ( const Vec4< T > & v ) const
inline

Definition at line 1895 of file ImathVec.h.

## Member Data Documentation

template<class T>
 T Vec4< T >::w

Definition at line 488 of file ImathVec.h.

template<class T>
 T Vec4< T >::x

Definition at line 488 of file ImathVec.h.

template<class T>
 T Vec4< T >::y

Definition at line 488 of file ImathVec.h.

template<class T>
 T Vec4< T >::z

Definition at line 488 of file ImathVec.h.

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