#include <Plane.hh>


Plane is described by it's normal and a distance along this normal from point (0,0,0).
Definition at line 32 of file Plane.hh.
Public Member Functions | |
| Plane (const Math::Vector &Normal, Double Distance, const Material &M=MatLib::Red(), Bool Visible=true) | |
| virtual Bool | Collide (const Render::Ray &R, Double &RayPos) const |
| virtual Math::Vector | NormalAt (const Math::Vector &Point) const |
| virtual Math::Point | UVAt (const Math::Vector &Point) const |
Protected Member Functions | |
| virtual std::string | Dump () const |
Protected Attributes | |
| const Math::Vector | Normal |
| const Double | Distance |
| World::Plane::Plane | ( | const Math::Vector & | Normal, | |
| Double | Distance, | |||
| const Material & | M = MatLib::Red(), |
|||
| Bool | Visible = true | |||
| ) | [inline] |
| std::string World::Plane::Dump | ( | ) | const [protected, virtual] |
Debug function
Reimplemented from World::Object.
Definition at line 62 of file Plane.cc.
References Distance, World::Object::M, and Normal.
| Bool World::Plane::Collide | ( | const Render::Ray & | R, | |
| Double & | RayPos | |||
| ) | const [virtual] |
Find a collision point with a ray
Implements World::Object.
Definition at line 23 of file Plane.cc.
References Render::Ray::Direction(), Distance, Math::Vector::Dot(), World::NearestCollision(), Normal, and Render::Ray::Start().
Referenced by Testcases::Scene().


| Math::Vector World::Plane::NormalAt | ( | const Math::Vector & | Point | ) | const [virtual] |
Find a normal to the object at it's surface
Implements World::Object.
Definition at line 52 of file Plane.cc.
References Normal.
| Math::Point World::Plane::UVAt | ( | const Math::Vector & | Point | ) | const [virtual] |
const Math::Vector World::Plane::Normal [protected] |
const Double World::Plane::Distance [protected] |
1.5.5