|
FdkBaseLib 2.1.1
|
A ray cast from a point in a direction. More...
#include <Ray.h>
Public Member Functions | |
| Ray () | |
| Default constructor leaves everything uninitialized. | |
| Ray (const Vec3< T > &origin, const Vec3< T > &direction, T start=0, T end=std::numeric_limits< T >::max()) | |
| Construct a Ray from start point, direction and start/end distances. | |
| void | set (const Vec3< T > &origin, const Vec3< T > &direction, T time, T start=0, T end=std::numeric_limits< T >::max()) |
| Assign the Ray's spatial and temporal values. | |
| Vec3< T > | operator() (T t) const |
| Return the ray position along the direction vector at distance t. | |
| Vec3< T > | start () const |
| Return the position at the start distance. | |
| Vec3< T > | end () const |
| Return the position at the end distance. | |
| Ray | transform (const Mat4< T > &m) const |
| Transform the ray by matrix m. | |
| Ray | transform (const Mat4< T > &m0, const Mat4< T > &m1, float t) const |
| Transform the ray by two matrices, interpolated by t. | |
Public Attributes | |
| Vec3< T > | origin |
| The origin of the ray. | |
| Vec3< T > | direction |
| T | minT |
| The direction of the ray. | |
| T | maxT |
| The maximum distance for the ray. | |
| T | time |
| The current time for the ray. | |
| uint32_t | typeMask |
| Ray-type mask. | |
A ray cast from a point in a direction.
| T fdk::Ray< T >::minT |
The direction of the ray.
The minimum distance for the ray
| ©2024 The Foundry Visionmongers, Ltd. All Rights Reserved. |