transform.h File Reference

#include "pbrt.h"
#include "geometry.h"
#include "quaternion.h"

Go to the source code of this file.

Classes

struct  Matrix4x4
class  Transform
class  AnimatedTransform

Defines

#define NOT_ONE(x)   ((x) < .999f || (x) > 1.001f)

Functions

Transform Translate (const Vector &delta)
Transform Scale (float x, float y, float z)
Transform RotateX (float angle)
Transform RotateY (float angle)
Transform RotateZ (float angle)
Transform Rotate (float angle, const Vector &axis)
Transform LookAt (const Point &pos, const Point &look, const Vector &up)
bool SolveLinearSystem2x2 (const float A[2][2], const float B[2], float *x0, float *x1)
Transform Orthographic (float znear, float zfar)
Transform Perspective (float fov, float znear, float zfar)

Define Documentation

#define NOT_ONE (  )     ((x) < .999f || (x) > 1.001f)

Referenced by Transform::HasScale().


Function Documentation

Transform LookAt ( const Point pos,
const Point look,
const Vector up 
)

Definition at line 228 of file transform.cpp.

References Cross(), Inverse(), Normalize(), Vector::x, Point::x, Vector::y, Point::y, Vector::z, and Point::z.

Referenced by pbrtLookAt().

Transform Orthographic ( float  znear,
float  zfar 
)

Definition at line 292 of file transform.cpp.

References Scale(), and Translate().

Transform Perspective ( float  fov,
float  znear,
float  zfar 
)

Definition at line 298 of file transform.cpp.

References Radians(), and Scale().

Referenced by ProjectionLight::ProjectionLight().

Transform Rotate ( float  angle,
const Vector axis 
)

Definition at line 197 of file transform.cpp.

References Normalize(), Radians(), Transpose(), Vector::x, Vector::y, and Vector::z.

Referenced by pbrtRotate().

Transform RotateX ( float  angle  ) 

Definition at line 163 of file transform.cpp.

References Radians(), and Transpose().

Referenced by main().

Transform RotateY ( float  angle  ) 

Definition at line 174 of file transform.cpp.

References Radians(), and Transpose().

Transform RotateZ ( float  angle  ) 

Definition at line 186 of file transform.cpp.

References Radians(), and Transpose().

Transform Scale ( float  x,
float  y,
float  z 
)
bool SolveLinearSystem2x2 ( const float  A[2][2],
const float  B[2],
float *  x0,
float *  x1 
)
Transform Translate ( const Vector delta  ) 
Generated on Sat Aug 28 20:00:12 2010 for pbrt by  doxygen 1.6.3