|
| | Ray (void) |
| | Default constructor creating a ray at origin along the first axis.
|
| |
| | Ray (math::Vector< RayComponentType, 3 > origin, math::Vector< RayComponentType, 3 > direction) |
| | Construct ray from origin and direction.
|
| |
| | Ray (const Ray &other) |
| | Copy constructor.
|
| |
| | Ray (Ray &&other) noexcept |
| | Move constructor.
|
| |
| Ray & | operator= (const Ray &other) |
| | Copy assignment operator.
|
| |
| Ray & | operator= (Ray &&other) noexcept |
| | Move assignment operator.
|
| |
| void | setOrigin (const math::Vector< RayComponentType, 3 > &origin) |
| | Set the ray origin.
|
| |
| void | setOrigin (const Position< RayComponentType > &origin) |
| | Set the ray origin using a Position value.
|
| |
| math::Vector< RayComponentType, 3 > | getOrigin () const |
| | Get the ray origin.
|
| |
| void | setDirection (const math::Vector< RayComponentType, 3 > &direction) |
| | Set the ray direction.
|
| |
| math::Vector< RayComponentType, 3 > | getDirection (void) const |
| | Get the ray direction.
|
| |
| const Position< RayComponentType > & | origin (void) const noexcept |
| | Access the ray origin by const reference.
|
| |
| const math::Vector< RayComponentType, 3 > & | direction (void) const noexcept |
| | Access the ray direction by const reference.
|
| |
| math::Vector< RayComponentType, 3 > | normalizedDirection () const |
| | Get a normalized copy of the ray direction.
|
| |
| math::Vector< RayComponentType, 3 > | pointAt (RayComponentType distanceParameter) const |
| | Evaluate a point on the ray at the provided parameter.
|
| |
| math::Vector< RayComponentType, 3 > | at (RayComponentType distanceParameter) const |
| | Alias for pointAt to match common ray APIs.
|
| |
| void | translate (const math::Vector< RayComponentType, 3 > &offset) |
| | Translate ray origin by the provided offset.
|
| |
| Ray | translated (const math::Vector< RayComponentType, 3 > &offset) const |
| | Get translated ray copy.
|
| |
| bool | operator== (const Ray &other) const |
| | Equality comparison.
|
| |
| bool | operator!= (const Ray &other) const |
| | Inequality comparison.
|
| |
| template<typename RectanglePoseType > |
| bool | intersectRectangle (const RectanglePoseType &rectanglePose, const math::Vector2F &rectangleSize) const |
| | Check for intersection with an axis-aligned rectangle plane.
|
| |
| utility::graphic::Mesh | convertToMesh (float length, float radius, int segments, utility::graphic::Color32Bit color={ 255, 255, 255, 255 }) const |
| | Convert the ray into a mesh representation for visualization.
|
| |
template<CanBeRayComponent RayComponentType>
class utility::graphic::Ray< RayComponentType >
Geometric ray with arithmetic component type and fixed dimension.
- Template Parameters
-
| Type | Arithmetic type for origin and direction components. |
| Dimension | Compile-time dimension of the ray vectors. |
Definition at line 60 of file ray.hpp.