#include <Ray.h>
◆ FReal
◆ TRay() [1/4]
Default constructor initializes ray to Zero origin and Z-axis direction
◆ TRay() [2/4]
Creates and initializes a new Ray to Zero Origin and Z-axis Direction.
- Parameters
-
| EForceInit | Force Init Enum. |
◆ TRay() [3/4]
Initialize Ray with origin and direction
- Parameters
-
| Origin | Ray Origin Point |
| Direction | Ray Direction Vector |
| bDirectionIsNormalized | Direction will be normalized unless this is passed as true (default false) |
◆ TRay() [4/4]
◆ ClosestPoint()
Find closest point on ray to query point
- Parameters
-
- Returns
- closest point on Ray
◆ Dist()
Find minimum distance from query point to ray
- Parameters
-
- Returns
- distance to Ray
◆ DistSquared()
Find minimum squared distance from query point to ray
- Parameters
-
- Returns
- squared distance to Ray
◆ GetParameter()
Calculate ray parameter (distance from origin to closest point) for query Point
- Parameters
-
- Returns
- distance along ray from origin to closest point
◆ Init()
Set the initial values of the Ray to Zero Origin and Z-axis Direction.
◆ operator!=()
Compares two Rays for inequality.
- Parameters
-
| Other | The other Ray to compare with. |
- Returns
- true if the Rays are not equal, false otherwise.
◆ operator==()
Compares two Rays for equality.
- Parameters
-
| Other | The other Ray to compare with. |
- Returns
- true if the Rays are equal, false otherwise.
◆ PointAt()
Calculate position on ray at given distance/parameter
- Parameters
-
| RayParameter | Scalar distance along Ray |
- Returns
- Point on Ray
◆ Serialize()
◆ SerializeFromMismatchedTag()
◆ ToString()
Get a textual representation of the Ray.
- Returns
- Text describing the Ray.
◆ operator<<
Serializes the Ray.
- Parameters
-
| Ar | The archive to serialize into. |
| Box | The box to serialize. |
- Returns
- Reference to the Archive after serialization.
◆ Direction
Ray direction vector (always normalized)
◆ Origin
The documentation for this struct was generated from the following files:
- Engine/Source/Runtime/Core/Public/Math/MathFwd.h
- Engine/Source/Runtime/Core/Public/Math/Ray.h