#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) |
RaycastResults & | operator= (const RaycastResults &other)=default |
RaycastResults & | operator= (RaycastResults &&other) |
Class used for storing the results of a raycast. It guarantees a uniform length of all its fields.