Searched refs:cartCoords (Results 1 – 1 of 1) sorted by relevance
819 public static Vector3f cartesianToSpherical(Vector3f cartCoords, in cartesianToSpherical() argument821 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() argument857 float x = cartCoords.x; in cartesianZToSpherical()862 + (cartCoords.y * cartCoords.y) in cartesianZToSpherical()863 + (cartCoords.z * cartCoords.z)); in cartesianZToSpherical()[all …]