|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API glm::mat4 MayaFlux::Kinesis::box_transform | ( | const AABB3D & | source, |
| const AABB3D & | target | ||
| ) |
Transform that scales and translates one box onto another.
| source | Box to map from |
| target | Box to map onto |
source onto target, scaling each axis independentlyAn axis along which source has no extent, a flat mesh for example, is not scaled and is only centered. A target with no extent along an axis flattens that axis. For a uniform or unscaled fit, pass a target already resized and centered to suit.
Definition at line 262 of file GeometryPrimitives.cpp.
References MayaFlux::Kinesis::AABB3D::center(), MayaFlux::Kinesis::AABB3D::extent(), and scale().
Referenced by MayaFlux::Nexus::Mantle::refresh().
Here is the call graph for this function:
Here is the caller graph for this function: