(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.
(from-seq s)
Convert seq of 3 elements to spherical point
Convert seq of 3 elements to spherical point
(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.
(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' 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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close