Home
last modified time | relevance | path

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

/external/jmonkeyengine/engine/src/core/com/jme3/math/
DFastMath.java804 public static Vector3f sphericalToCartesian(Vector3f sphereCoords, in sphericalToCartesian() argument
806 store.y = sphereCoords.x * FastMath.sin(sphereCoords.z); in sphericalToCartesian()
807 float a = sphereCoords.x * FastMath.cos(sphereCoords.z); in sphericalToCartesian()
808 store.x = a * FastMath.cos(sphereCoords.y); in sphericalToCartesian()
809 store.z = a * FastMath.sin(sphereCoords.y); in sphericalToCartesian()
840 public static Vector3f sphericalToCartesianZ(Vector3f sphereCoords, in sphericalToCartesianZ() argument
842 store.z = sphereCoords.x * FastMath.sin(sphereCoords.z); in sphericalToCartesianZ()
843 float a = sphereCoords.x * FastMath.cos(sphereCoords.z); in sphericalToCartesianZ()
844 store.x = a * FastMath.cos(sphereCoords.y); in sphericalToCartesianZ()
845 store.y = a * FastMath.sin(sphereCoords.y); in sphericalToCartesianZ()