MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / inclination

Function inclination

MathBox/mathbox-bundle.js:33073–33077  ·  view source on GitHub ↗
( vector )

Source from the content-addressed store, hash-verified

33071 // Angle above the XZ plane.
33072
33073 function inclination( vector ) {
33074
33075 return Math.atan2( - vector.y, Math.sqrt( ( vector.x * vector.x ) + ( vector.z * vector.z ) ) );
33076
33077 }
33078
33079
33080 // Texture fixing helper. Spheres have some odd behaviours.

Callers 1

prepareFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected