cesium-native 0.43.0
|
Convenience functions for getting and setting Cesium3DTiles::Tile::transform
as a glm::dmat4
.
More...
#include <Cesium3DTilesContent/TileTransform.h>
Static Public Member Functions | |
static std::optional< glm::dmat4 > | getTransform (const Cesium3DTiles::Tile &tile) |
Gets the tile's transform as a glm::dmat4 . | |
static void | setTransform (Cesium3DTiles::Tile &tile, const glm::dmat4 &newTransform) |
Sets the tile's transform using the values of a glm::dmat4 . | |
Convenience functions for getting and setting Cesium3DTiles::Tile::transform
as a glm::dmat4
.
Definition at line 17 of file TileTransform.h.
|
static |
Gets the tile's transform as a glm::dmat4
.
If the tile's transform array has more than 16 elements, the extras are silently ignored.
tile | The tile from which to get the transform. |
std::nullopt
if the Cesium3DTiles::Tile::transform
has less than 16 elements.
|
static |
Sets the tile's transform using the values of a glm::dmat4
.
The existing value of the tile's transform property, if any, is replaced.
tile | The tile on which to set the transform. |
newTransform | The new transform. |