Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::placement_bounds Namespace Reference

Functions

f32 radius (const glm::vec3 &lo, const glm::vec3 &hi, f32 displacement)
f32 stretchSquared (const f32 *rows)
void transformedBox (const glm::mat3 &parent, const f32 *rows, const glm::vec3 &origin, const glm::vec3 &localCentre, const glm::vec3 &localHalf, glm::vec3 &centre, glm::vec3 &half)

Function Documentation

◆ radius()

f32 esengine::placement_bounds::radius ( const glm::vec3 & lo,
const glm::vec3 & hi,
f32 displacement )
inline

Radius about the placement origin, including the material's local displacement.

Definition at line 17 of file PlacementBounds.hpp.

Referenced by esengine::MeshPlugin::collect().

◆ stretchSquared()

f32 esengine::placement_bounds::stretchSquared ( const f32 * rows)
inline

Squared stretch bound for the linear part of a row-major 3x4 placement.

Definition at line 22 of file PlacementBounds.hpp.

Referenced by esengine::meshInstances_set().

◆ transformedBox()

void esengine::placement_bounds::transformedBox ( const glm::mat3 & parent,
const f32 * rows,
const glm::vec3 & origin,
const glm::vec3 & localCentre,
const glm::vec3 & localHalf,
glm::vec3 & centre,
glm::vec3 & half )
inline

Transforms a local box through the complete placement and parent linear transforms.

Definition at line 35 of file PlacementBounds.hpp.