|
cesium-native 0.62.0
|
Converts from a vecN type to another vecN type. More...
#include <CesiumGltf/MetadataConversions.h>
Static Public Member Functions | |
| static std::optional< TTo > | convert (TFrom from) |
| Converts a value of the given vecN to another vecN type. | |
| static std::optional< TTo > | convert (TFrom) |
Converts between TFrom and TTo where no actual conversion is defined, returning std::nullopt. | |
Converts from a vecN type to another vecN type.
Definition at line 701 of file MetadataConversions.h.
|
inlinestatic |
Converts a value of the given vecN to another vecN type.
If the given vector has more components than the target vecN type, then only its first N components will be used, where N is the dimension of the target vecN type. Otherwise, if the target vecN type has more components, its extra components will be initialized to zero.
If any of the relevant components cannot be converted to the target vecN component type, std::nullopt is returned.
| from | The vecN value to convert from. |
Definition at line 721 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.