cesium-native 0.62.0
Loading...
Searching...
No Matches
CesiumGltf::MetadataConversions< std::string, TFrom, std::enable_if_t< IsMetadataVecN< TFrom >::value||IsMetadataMatN< TFrom >::value > > Struct Template Reference

Converts from a glm::vecN or glm::matN to a string. More...

#include <CesiumGltf/MetadataConversions.h>

Static Public Member Functions

static std::optional< std::string > convert (const TFrom &from)
 Converts a glm::vecN or glm::matN to a std::string. This uses the format that glm::to_string() outputs for vecNs or matNs respectively.
 
static std::optional< std::string > convert (TFrom)
 Converts between TFrom and TTo where no actual conversion is defined, returning std::nullopt.
 

Detailed Description

template<typename TFrom>
struct CesiumGltf::MetadataConversions< std::string, TFrom, std::enable_if_t< IsMetadataVecN< TFrom >::value||IsMetadataMatN< TFrom >::value > >

Converts from a glm::vecN or glm::matN to a string.

Definition at line 611 of file MetadataConversions.h.

Member Function Documentation

◆ convert() [1/2]

template<typename TFrom>
static std::optional< std::string > CesiumGltf::MetadataConversions< std::string, TFrom, std::enable_if_t< IsMetadataVecN< TFrom >::value||IsMetadataMatN< TFrom >::value > >::convert ( const TFrom & from)
inlinestatic

Converts a glm::vecN or glm::matN to a std::string. This uses the format that glm::to_string() outputs for vecNs or matNs respectively.

Parameters
fromThe glm::vecN or glm::matN to be converted.

Definition at line 622 of file MetadataConversions.h.

◆ convert() [2/2]

static std::optional< std::string > CesiumGltf::MetadataConversions< std::string, TFrom, std::enable_if_t< IsMetadataVecN< TFrom >::value||IsMetadataMatN< TFrom >::value > >::convert ( TFrom )
inlinestatic

Converts between TFrom and TTo where no actual conversion is defined, returning std::nullopt.

Definition at line 26 of file MetadataConversions.h.


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