#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 NOT_ONE | ( | x | ) | ((x) < .999f || (x) > 1.001f) |
Referenced by Transform::HasScale().
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().
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 | |||
) |
Definition at line 150 of file transform.cpp.
Referenced by Orthographic(), pbrtScale(), Perspective(), and ProjectiveCamera::ProjectiveCamera().
bool SolveLinearSystem2x2 | ( | const float | A[2][2], | |
const float | B[2], | |||
float * | x0, | |||
float * | x1 | |||
) |
Definition at line 31 of file transform.cpp.
Referenced by DifferentialGeometry::ComputeDifferentials(), and Triangle::GetShadingGeometry().
Definition at line 137 of file transform.cpp.
References Vector::x, Vector::y, and Vector::z.
Referenced by CreatePointLight(), CreateSpotLight(), AnimatedTransform::Interpolate(), Orthographic(), pbrtTranslate(), ProjectiveCamera::ProjectiveCamera(), SurfacePointsRenderer::Render(), and CreateRadianceProbes::Render().