cesium-native 0.62.0
Loading...
Searching...
No Matches
CesiumGltf::QuaternionFromAccessor Struct Reference

Visitor that retrieves the quaternion from the given accessor type as a glm::dquat. More...

#include <CesiumGltf/AccessorUtility.h>

Public Member Functions

template<typename T>
std::optional< glm::dquat > operator() (const AccessorView< AccessorTypes::VEC4< T > > &value)
 Attempts to obtain a glm::dquat at the given index from an accessor over a vec4. The values will be cast to double and, if applicable, normalized based on std::numeric_limits<T>::max(). If the index is invalid, std::nullopt is returned instead.
 

Public Attributes

int64_t index
 The index of the quaternion to obtain.
 

Detailed Description

Visitor that retrieves the quaternion from the given accessor type as a glm::dquat.

Definition at line 589 of file AccessorUtility.h.

Member Function Documentation

◆ operator()()

template<typename T>
std::optional< glm::dquat > CesiumGltf::QuaternionFromAccessor::operator() ( const AccessorView< AccessorTypes::VEC4< T > > & value)
inline

Attempts to obtain a glm::dquat at the given index from an accessor over a vec4. The values will be cast to double and, if applicable, normalized based on std::numeric_limits<T>::max(). If the index is invalid, std::nullopt is returned instead.

Definition at line 598 of file AccessorUtility.h.

Member Data Documentation

◆ index

int64_t CesiumGltf::QuaternionFromAccessor::index

The index of the quaternion to obtain.

Definition at line 621 of file AccessorUtility.h.


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