cesium-native 0.43.0
|
Converts from a std::string to a float. More...
#include <CesiumGltf/MetadataConversions.h>
Static Public Member Functions | |
static std::optional< float > | convert (const std::string &from) |
Converts a std::string to a float. This assumes that the entire std::string represents the number, not just a part of it. | |
Converts from a std::string to a float.
Definition at line 415 of file MetadataConversions.h.
|
inlinestatic |
Converts a std::string to a float. This assumes that the entire std::string represents the number, not just a part of it.
This returns std::nullopt if no number is parsed from the string.
from | The std::string to parse from. |
Definition at line 424 of file MetadataConversions.h.