#include <InfinitePlane.h>
Definition at line 16 of file InfinitePlane.h.
Public Member Functions | |
InfinitePlane (Vector3D origin, Vector3D normal) | |
initializes the infinite plane with its origin and its normal. | |
~InfinitePlane () | |
bool | Intersect (Ray &ray) |
returns true, if the plane is hit by the ray. | |
virtual Vector3D | GetNormal (Ray &ray) |
returns the normal of the plane. | |
Private Member Functions | |
Box | CalcBounds () |
Returns the boundingbox of the plane. A boundingbox does not make any sense for an infinite plane and therefore we return a box of dimension 0... | |
Private Attributes | |
Vector3D | normal |
The normal vector of the plane. | |
Vector3D | origin |
The origin of the plane. |
initializes the infinite plane with its origin and its normal.
Definition at line 48 of file InfinitePlane.h.
References Vector3D::Normalize().
InfinitePlane::~InfinitePlane | ( | ) | [inline] |
Definition at line 52 of file InfinitePlane.h.
Box InfinitePlane::CalcBounds | ( | ) | [inline, private, virtual] |
Returns the boundingbox of the plane. A boundingbox does not make any sense for an infinite plane and therefore we return a box of dimension 0...
Implements Primitive.
Definition at line 35 of file InfinitePlane.h.
References Box::Extend().
bool InfinitePlane::Intersect | ( | Ray & | ray | ) | [inline, virtual] |
returns the normal of the plane.
Implements Primitive.
Definition at line 72 of file InfinitePlane.h.
Vector3D InfinitePlane::normal [private] |
The normal vector of the plane.
Vector3D normal
Definition at line 22 of file InfinitePlane.h.
Referenced by Intersect().
Vector3D InfinitePlane::origin [private] |
The origin of the plane.
Vector3D origin
Definition at line 28 of file InfinitePlane.h.
Referenced by Intersect().