cesium-native 0.43.0
Loading...
Searching...
No Matches
Cesium3DTilesContent::TileTransform Class Reference

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.
 

Detailed Description

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

Definition at line 17 of file TileTransform.h.

Member Function Documentation

◆ getTransform()

static std::optional< glm::dmat4 > Cesium3DTilesContent::TileTransform::getTransform ( const Cesium3DTiles::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 Cesium3DTiles::Tile::transform has less than 16 elements.

◆ setTransform()

static void Cesium3DTilesContent::TileTransform::setTransform ( Cesium3DTiles::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: