|
cesium-native 0.62.0
|
#include <CesiumGltf/MetadataConversions.h>
Static Public Member Functions | |
| static std::optional< TTo > | convert (TFrom from) |
| static std::optional< TTo > | convert (TFrom) |
Converts between TFrom and TTo where no actual conversion is defined, returning std::nullopt. | |
Converts from a scalar type to a matN.
Definition at line 770 of file MetadataConversions.h.
|
inlinestatic |
Converts a scalar to a matN. The returned vector is initialized with the value in all components. The value may lose precision during conversion depending on the type of the scalar and the component type of the matrix.
If the scalar cannot be reasonably converted to the component type of the matN, std::nullopt is returned.
| from | The scalar value to be converted. |
Definition at line 787 of file MetadataConversions.h.
|
inlinestatic |
Converts between TFrom and TTo where no actual conversion is defined, returning std::nullopt.
Definition at line 26 of file MetadataConversions.h.