Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

toxic::Plane Class Reference

#include <plane.h>

Inheritance diagram for toxic::Plane:

toxic::IObject toxic::Basis List of all members.

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

Constructor & Destructor Documentation

Plane::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.

Definition at line 36 of file plane.cpp.


Member Function Documentation

bool Plane::Intersect const Context context,
const Ray ray,
Hit hit = 0
const [virtual]
 

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.

Parameters:
ray  '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.


The documentation for this class was generated from the following files:
Generated on Tue May 11 01:31:57 2004 for toxic by doxygen 1.3.6