cesium-native  0.41.0
CesiumGltf::MetadataConversions< double, bool > Struct Reference

Converts from a boolean to a double. More...

#include <CesiumGltf/MetadataConversions.h>

Static Public Member Functions

static std::optional< double > convert (bool from)
 Converts a boolean to a double. This returns 1.0 for true, 0.0 for false. More...
 

Detailed Description

Converts from a boolean to a double.

Definition at line 470 of file MetadataConversions.h.

Member Function Documentation

◆ convert()

static std::optional<double> CesiumGltf::MetadataConversions< double, bool >::convert ( bool  from)
inlinestatic

Converts a boolean to a double. This returns 1.0 for true, 0.0 for false.

Parameters
fromThe boolean value to be converted.

Definition at line 477 of file MetadataConversions.h.


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