MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / getMinAxis

Method getMinAxis

include/reactphysics3d/mathematics/Vector3.h:235–237  ·  view source on GitHub ↗

Return the axis with the minimal value

Source from the content-addressed store, hash-verified

233
234// Return the axis with the minimal value
235RP3D_FORCE_INLINE int Vector3::getMinAxis() const {
236 return (x < y ? (x < z ? 0 : 2) : (y < z ? 1 : 2));
237}
238
239// Return the axis with the maximal value
240RP3D_FORCE_INLINE int Vector3::getMaxAxis() const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected