cesium-native 0.62.0
Loading...
Searching...
No Matches
CesiumGltf::MetadataConversions< float, TFrom, std::enable_if_t< CesiumGltf::IsMetadataInteger< TFrom >::value > > Struct Template Reference

Converts from an integer type to a float. More...

#include <CesiumGltf/MetadataConversions.h>

Static Public Member Functions

static std::optional< float > convert (TFrom from)
 Converts an integer to a float. The value may lose precision during conversion.
 
static std::optional< float > convert (TFrom)
 Converts between TFrom and TTo where no actual conversion is defined, returning std::nullopt.
 

Detailed Description

template<typename TFrom>
struct CesiumGltf::MetadataConversions< float, TFrom, std::enable_if_t< CesiumGltf::IsMetadataInteger< TFrom >::value > >

Converts from an integer type to a float.

Definition at line 368 of file MetadataConversions.h.

Member Function Documentation

◆ convert() [1/2]

template<typename TFrom>
static std::optional< float > CesiumGltf::MetadataConversions< float, TFrom, std::enable_if_t< CesiumGltf::IsMetadataInteger< TFrom >::value > >::convert ( TFrom from)
inlinestatic

Converts an integer to a float. The value may lose precision during conversion.

Parameters
fromThe integer value to be converted.

Definition at line 378 of file MetadataConversions.h.

◆ convert() [2/2]

static std::optional< float > CesiumGltf::MetadataConversions< float, TFrom, std::enable_if_t< CesiumGltf::IsMetadataInteger< 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: