Home
last modified time | relevance | path

Searched refs:cartCoords (Results 1 – 1 of 1) sorted by relevance

/external/jmonkeyengine/engine/src/core/com/jme3/math/
DFastMath.java819 public static Vector3f cartesianToSpherical(Vector3f cartCoords, in cartesianToSpherical() argument
821 float x = cartCoords.x; in cartesianToSpherical()
826 + (cartCoords.y * cartCoords.y) in cartesianToSpherical()
827 + (cartCoords.z * cartCoords.z)); in cartesianToSpherical()
828 store.y = FastMath.atan(cartCoords.z / x); in cartesianToSpherical()
832 store.z = FastMath.asin(cartCoords.y / store.x); in cartesianToSpherical()
855 public static Vector3f cartesianZToSpherical(Vector3f cartCoords, in cartesianZToSpherical() argument
857 float x = cartCoords.x; in cartesianZToSpherical()
862 + (cartCoords.y * cartCoords.y) in cartesianZToSpherical()
863 + (cartCoords.z * cartCoords.z)); in cartesianZToSpherical()
[all …]