Open 3D Engine ROS2 Gem API Reference 25.05.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
ROS2::RaycastResults Class Reference

#include <RaycastResults.h>

Public Types

template<RaycastResultFlags F, typename RT = typename ResultTraits<F>::Type>
using FieldSpan = AZStd::span< RT >
 
template<RaycastResultFlags F>
using ConstFieldSpan = FieldSpan< F, const typename ResultTraits< F >::Type >
 

Public Member Functions

 RaycastResults (RaycastResultFlags flags, size_t count=0U)
 
 RaycastResults (const RaycastResults &other)=default
 
 RaycastResults (RaycastResults &&other)
 
bool IsEmpty () const
 
template<RaycastResultFlags F>
bool IsFieldPresent () const
 
size_t GetCount () const
 
template<RaycastResultFlags F>
AZStd::optional< ConstFieldSpan< F > > GetConstFieldSpan () const
 
template<RaycastResultFlags F>
AZStd::optional< FieldSpan< F > > GetFieldSpan ()
 
void Clear ()
 
void Resize (size_t count)
 
RaycastResultsoperator= (const RaycastResults &other)=default
 
RaycastResultsoperator= (RaycastResults &&other)
 

Detailed Description

Class used for storing the results of a raycast. It guarantees a uniform length of all its fields.


The documentation for this class was generated from the following file: