Liking cljdoc? Tell your friends :D

mathree.spherical


from-cartesian-coordscljs

(from-cartesian-coords x y z)

Sets values of this spherical's radius, phi and theta properties from Cartesian coordinates.

Sets values of this spherical's radius, phi and theta properties from Cartesian coordinates.
sourceraw docstring

from-seqcljs

(from-seq s)

Convert seq of 3 elements to spherical point

Convert seq of 3 elements to spherical point
sourceraw docstring

from-vector3cljs

(from-vector3 vector3)

Sets values of this spherical's radius, phi and theta properties from the Vector3.

Sets values of this spherical's radius, phi and theta properties from the Vector3. 
sourceraw docstring

ISphericalcljsprotocol

almost-equalscljs

(almost-equals s1 s2)

Return true if s1 and s2 are almost equal. every element is less than 0.000001.

Return true if s1 and s2 are almost equal. every element is less than 0.000001.

clone'cljs

(clone' s)

Returns a new spherical with the same radius, phi and theta properties as this one.

Returns a new spherical with the same radius, phi and theta properties as this one.
source

sphericalcljs

(spherical)
(spherical radius phi theta)

Constructor Spherical( radius : Float, phi : Float, theta : Float ) radius - the radius, or the Euclidean distance (straight-line distance) from the point to the origin. Default is 1.0. phi - polar angle in radians from the y (up) axis. Default is 0. theta - equator angle in radians around the y (up) axis. Default is 0.

The poles (phi) are at the positive and negative y axis. The equator (theta) starts at positive z.

Constructor
Spherical( radius : Float, phi : Float, theta : Float )
radius - the radius, or the Euclidean distance (straight-line distance) from the point to the origin. Default is 1.0.
phi - polar angle in radians from the y (up) axis. Default is 0.
theta - equator angle in radians around the y (up) axis. Default is 0.

The poles (phi) are at the positive and negative y axis. The equator (theta) starts at positive z.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close