#include <plane.h>
Inheritance diagram for toxic::Plane:

Public Member Functions | |
| Plane (const sheep::Matrix4 &m, const ISurfaceShader *surface_shader, IntersectionMask intersection_mask=INTERSECT_ALL_RAYS) | |
| m is the object space to world space transformation matrix. | |
| virtual bool | Intersect (const Context &context, const Ray &ray, Hit *hit=0) const |
|
||||||||||||||||
|
m is the object space to world space transformation matrix.
|
|
||||||||||||||||
|
This method returns true if the ray intersect the object, or false otherwise. If 'hit' is not null, intersection data are reported through the 'hit' parameter (only if an intersection has been found; if no intersection has been found, the 'hit' parameter is left unchanged). The ray is expressed in world space.
Implements toxic::IObject. Definition at line 43 of file plane.cpp. References toxic::Ray::GetType(), toxic::Hit::m_abscissa, toxic::Ray::m_direction, toxic::Hit::m_geometric_normal, toxic::Statistics::m_intersections_found, toxic::Hit::m_object, toxic::Ray::m_origin, toxic::Hit::m_shading_normal, toxic::Context::m_statistics, toxic::Statistics::m_tested_intersections, sheep::Vector3::m_x, sheep::Point3::m_x, sheep::Vector3::m_y, sheep::Point3::m_y, sheep::Vector3::m_z, and sheep::Point3::m_z. |
1.3.6