|
3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
|
Represents an ray in 3D space, defined by an origin and direction vector. More...
#include <Ray.hpp>

Public Member Functions | |
| Ray (Vector3 origin, Vector3 direction) | |
| float | Intersects (const BoundingSphere &sph) const |
| Checks if this ray intersects with the given bounding sphere. | |
| float | Intersects (const Triangle &tri) const |
| Checks if this ray intersects the given triangle using the Möller–Trumbore intersection algorithm. | |
| float | Intersects (const BoundingBox &box) const |
| Checks if this ray intersects with the given bounding box. | |
| float | Intersects (const BoundingPlane &plane) const |
| Checks if this ray intersects with the given bounding plane. | |
Public Attributes | |
| Vector3 | Origin |
| Origin in world space. | |
| Vector3 | Direction |
| Direction vector. Must be normalized. | |
Represents an ray in 3D space, defined by an origin and direction vector.
| float Ray::Intersects | ( | const BoundingBox & | box | ) | const |
Checks if this ray intersects with the given bounding box.
| box | Bounding box to test for intersection. |
| float Ray::Intersects | ( | const BoundingPlane & | plane | ) | const |
Checks if this ray intersects with the given bounding plane.
| plane | Bounding plane to test for intersection. |
| float Ray::Intersects | ( | const BoundingSphere & | sph | ) | const |
Checks if this ray intersects with the given bounding sphere.
| sph | Bounding sphere. |
this.Direction but must be normalized.
Checks if this ray intersects the given triangle using the Möller–Trumbore intersection algorithm.
| tri | Triangle to test for intersection. |
| Vector3 Engine3DRadSpace.Math.Ray.Direction |
Direction vector. Must be normalized.
| Vector3 Engine3DRadSpace.Math.Ray.Origin |
Origin in world space.