cesium-native 0.67.0
Loading...
Searching...
No Matches
Cesium3DTiles::TileTransform Class Reference

Convenience functions for getting and setting CesiumTilesetJson::Tile::transform as a glm::dmat4. More...

#include <Cesium3DTiles/TileTransform.h>

Static Public Member Functions

static std::optional< glm::dmat4 > getTransform (const CesiumTilesetJson::Tile &tile)
 Gets the tile's transform as a glm::dmat4.
 
static void setTransform (CesiumTilesetJson::Tile &tile, const glm::dmat4 &newTransform)
 Sets the tile's transform using the values of a glm::dmat4.
 

Detailed Description

Convenience functions for getting and setting CesiumTilesetJson::Tile::transform as a glm::dmat4.

Definition at line 17 of file TileTransform.h.

Member Function Documentation

◆ getTransform()

static std::optional< glm::dmat4 > Cesium3DTiles::TileTransform::getTransform ( const CesiumTilesetJson::Tile & tile)
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.

Parameters
tileThe tile from which to get the transform.
Returns
The transform, or std::nullopt if the CesiumTilesetJson::Tile::transform has less than 16 elements.

◆ setTransform()

static void Cesium3DTiles::TileTransform::setTransform ( CesiumTilesetJson::Tile & tile,
const glm::dmat4 & newTransform )
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.

Parameters
tileThe tile on which to set the transform.
newTransformThe new transform.

The documentation for this class was generated from the following file: