cesium-native 0.43.0
|
Converts from a double to a float. More...
#include <CesiumGltf/MetadataConversions.h>
Static Public Member Functions | |
static std::optional< float > | convert (double from) |
Converts a double to a float. The value may lose precision during conversion. | |
Converts from a double to a float.
Definition at line 394 of file MetadataConversions.h.
|
inlinestatic |
Converts a double to a float. The value may lose precision during conversion.
If the value is outside the range of a float, std::nullopt is returned.
from | The double value to be converted. |
Definition at line 403 of file MetadataConversions.h.