cesium-native
0.41.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. More... | |
Converts from a std::string to a float.
Definition at line 408 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 417 of file MetadataConversions.h.