Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TRay
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TRay () |
Default constructor initializes ray to Zero origin and Z-axis direction | Math/Ray.h | |
TRay
(
EForceInit |
Creates and initializes a new Ray to Zero Origin and Z-axis Direction. | Math/Ray.h | |
| Conversion to other type. | Math/Ray.h | ||
| Initialize Ray with origin and direction | Math/Ray.h |
TRay()
Description
Default constructor initializes ray to Zero origin and Z-axis direction
| Name | TRay |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Ray.h |
| Include Path | #include "Math/Ray.h" |
TRay()
TRay(EForceInit)
Description
Creates and initializes a new Ray to Zero Origin and Z-axis Direction.
| Name | TRay |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Ray.h |
| Include Path | #include "Math/Ray.h" |
TRay
(
EForceInit
)
Parameters
| Name | Remarks |
|---|---|
| EForceInit | Force Init Enum. |
TRay(const TRay< FArg > &)
Description
Conversion to other type.
| Name | TRay |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Ray.h |
| Include Path | #include "Math/Ray.h" |
template<typename FArg, std::enable_if_t<(!std::is_same_v< T, FArg >), int >>
TRay
(
const TRay < FArg > & From
)
TRay(const TVector< T > &, const TVector< T > &, bool)
Description
Initialize Ray with origin and direction
| Name | TRay |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Ray.h |
| Include Path | #include "Math/Ray.h" |
TRay
(
const TVector < T > & Origin,
const TVector < T > & Direction,
bool bDirectionIsNormalized
)
Parameters
| Name | Remarks |
|---|---|
| Origin | Ray Origin Point |
| Direction | Ray Direction Vector |
| bDirectionIsNormalized | Direction will be normalized unless this is passed as true (default false) |