#include <basis.h>
Inheritance diagram for toxic::Basis:

Public Member Functions | |
| Basis (const sheep::Matrix4 &m) | |
| m is the local space to world space transformation matrix. | |
| sheep::Vector3 | TransformToWorld (const sheep::Vector3 &v) const |
| Vector v is expressed in local space, returned vector is expressed in world space. | |
| sheep::Point3 | TransformToWorld (const sheep::Point3 &v) const |
| Point p is expressed in local space, returned point is expressed in world space. | |
| sheep::Vector3 | TransformToLocal (const sheep::Vector3 &v) const |
| Vector v is expressed in world space, returned vector is expressed in local space. | |
| sheep::Point3 | TransformToLocal (const sheep::Point3 &v) const |
| Point p is expressed in world space, returned point is expressed in local space. | |
| Ray | TransformToWorld (const Ray &r) const |
| Ray | TransformToLocal (const Ray &r) const |
| sheep::Vector3 | TransformNormalToWorld (const sheep::Vector3 &n) const |
| sheep::Vector3 | TransformNormalToLocal (const sheep::Vector3 &n) const |
Protected Attributes | |
| sheep::Matrix4 | m_m |
| Local space to world space vector transformation matrix. | |
| sheep::Matrix4 | m_inv_m |
| World space to local space vector transformation matrix. | |
| sheep::Matrix4 | m_tr_inv_m |
| Local space to world space normal transformation matrix. | |
| sheep::Matrix4 | m_tr_m |
| World space to local space normal transformation matrix. | |
|
|
m is the local space to world space transformation matrix.
|
|
|
Normal n is expressed in world space, returned normal is expressed in local space. The returned vector IS unit-length. |
|
|
Normal n is expressed in local space, returned normal is expressed in world space. The returned vector IS unit-length. Definition at line 137 of file basis.h. Referenced by toxic::Mesh::Annotate(), toxic::Sphere::ComputeIrradiance(), and toxic::Sphere::EvaluateSurface(). |
|
|
Ray r is expressed in world space, returned ray is expressed in local space. Direction vector of the returned ray MAY NOT be unit-length. |
|
|
Point p is expressed in world space, returned point is expressed in local space.
|
|
|
Vector v is expressed in world space, returned vector is expressed in local space.
Definition at line 110 of file basis.h. Referenced by toxic::Square::Intersect(), toxic::Sphere::Intersect(), toxic::Ring::Intersect(), and toxic::Cube::Intersect(). |
|
|
Ray r is expressed in local space, returned ray is expressed in world space. Direction vector of the returned ray MAY NOT be unit-length. |
|
|
Point p is expressed in local space, returned point is expressed in world space.
|
|
|
Vector v is expressed in local space, returned vector is expressed in world space.
Definition at line 98 of file basis.h. Referenced by toxic::Mesh::Finalize(), and toxic::Sphere::Sphere(). |
|
|
World space to local space vector transformation matrix.
|
|
|
Local space to world space vector transformation matrix.
|
|
|
Local space to world space normal transformation matrix.
|
|
|
World space to local space normal transformation matrix.
|
1.3.6