cesium-native 0.47.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.
 

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()

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.


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