cesium-native 0.48.0
Loading...
Searching...
No Matches
CesiumGltf::MetadataConversions< TTo, bool, std::enable_if_t< IsMetadataMatN< TTo >::value > > Struct Template Reference

Converts from a boolean to a matN. More...

#include <CesiumGltf/MetadataConversions.h>

Static Public Member Functions

static std::optional< TTo > convert (bool from)
 Converts a boolean to a matN. The boolean is converted to an integer value of 1 for true or 0 for false. The returned matrix is initialized with this value in all of its components.
 
static std::optional< TTo > convert (bool)
 Converts between TFrom and TTo where no actual conversion is defined, returning std::nullopt.
 

Detailed Description

template<typename TTo>
struct CesiumGltf::MetadataConversions< TTo, bool, std::enable_if_t< IsMetadataMatN< TTo >::value > >

Converts from a boolean to a matN.

Definition at line 750 of file MetadataConversions.h.

Member Function Documentation

◆ convert() [1/2]

template<typename TTo>
static std::optional< TTo > CesiumGltf::MetadataConversions< TTo, bool, std::enable_if_t< IsMetadataMatN< TTo >::value > >::convert ( bool from)
inlinestatic

Converts a boolean to a matN. The boolean is converted to an integer value of 1 for true or 0 for false. The returned matrix is initialized with this value in all of its components.

Parameters
fromThe boolean to be converted.

Definition at line 761 of file MetadataConversions.h.

◆ convert() [2/2]

static std::optional< TTo > CesiumGltf::MetadataConversions< TTo, bool, std::enable_if_t< IsMetadataMatN< TTo >::value > >::convert ( bool )
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: