|
3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
|
Represents a plane with the equation p(x,y,z) = Normal.X * x + Normal.Y * y + Normal.Z * z + D. More...
#include <BoundingPlane.hpp>

Public Member Functions | |
| bool | Intersects (const BoundingBox &box) const |
| Does this plane intersect with the given bounding box? | |
| bool | Intersects (const BoundingSphere &sphere) const |
| Does this plane intersect with the given bounding sphere? | |
| bool | Intersects (const Ray &ray) const |
| Does this plane intersect with the given ray? | |
| bool | Contains (const Vector3 &p) const |
| Is p on this plane? | |
Public Attributes | |
| Vector3 | Normal |
| Normal vector of the plane. Should be normalized. | |
| float | D = 0 |
| Distance from the origin. | |
Represents a plane with the equation p(x,y,z) = Normal.X * x + Normal.Y * y + Normal.Z * z + D.
Is p on this plane?
| p | Point p |
| bool BoundingPlane::Intersects | ( | const BoundingBox & | box | ) | const |
Does this plane intersect with the given bounding box?
| box | The bounding box to test for intersection |
| bool BoundingPlane::Intersects | ( | const BoundingSphere & | sphere | ) | const |
Does this plane intersect with the given bounding sphere?
| sphere | The bounding sphere to test for intersection |
Does this plane intersect with the given ray?
| ray | The ray to test for intersection |
| float Engine3DRadSpace.Math::BoundingPlane::D = 0 |
Distance from the origin.
| Vector3 Engine3DRadSpace.Math::BoundingPlane::Normal |
Normal vector of the plane. Should be normalized.