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

Method getMaxAxis

include/reactphysics3d/mathematics/Vector3.h:240–242  ·  view source on GitHub ↗

Return the axis with the maximal value

Source from the content-addressed store, hash-verified

238
239// Return the axis with the maximal value
240RP3D_FORCE_INLINE int Vector3::getMaxAxis() const {
241 return (x < y ? (y < z ? 2 : 1) : (x < z ? 2 : 0));
242}
243
244// Return true if the vector is unit and false otherwise
245RP3D_FORCE_INLINE bool Vector3::isUnit() const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected