anchor.diff:  * cartesianToSpherical - converts a point from link:https://en.wikipedia.org/wiki/Cartesian[cartesian coordinates] to link:https://en.wikipedia.org/wiki/Spherical_coordinate_system[spherical coordinates].
   
   
  -===== Misc.
  +==== Misc.
   
   * newRandomFloat - obtains a random float.
   
  
positive.code: Multiplying a vector with a Matrix allows the vector to be transformed. Either rotating, scaling or translating that vector.
  
  
  ===== Scaling
  
  If a _diagonal Matrix_, defined by D = [d~ij~] and d~ij~ = 0 for i != j, has all positive entries it is a _scaling matrix_. If d~i~ is greater than 1 then the resulting vector will grow, while if d~i~ is less than 1 it will shrink.
  
  
  ===== Rotation
  
  A _rotation matrix_ requires that the transpose and inverse are the same matrix (R^-1^ = R^T^). The _rotation matrix_ R can then be calculated as: R = I + (sin(angle)) S + (1 - cos(angle)S^2^ where S is:
  [cols="3", options="header"]
  
negative.code: There are five major categories of functions that FastMath provides.
  
  
  ==== Trig Functions
  
  * cos and acos - provide link:http://en.wikipedia.org/wiki/cosine[cosine] and link:https://en.wikipedia.org/wiki/Inverse_trigonometric_functions[arc cosine] values (make use of the look-up table if `USE_FAST_TRIG` is true)
  * sin and asin - provide link:http://en.wikipedia.org/wiki/sine[sine] and link:https://en.wikipedia.org/wiki/Inverse_trigonometric_functions[arc sine] values (make use of the look-up table if `USE_FAST_TRIG` is true)
  * tan and atan - provide link:http://en.wikipedia.org/wiki/tangent[tangent] and link:https://en.wikipedia.org/wiki/Inverse_trigonometric_functions[arc tangent] values
  
  
  ==== Numerical Methods
  
  * ceil - provides the ceiling (smallest value that is greater than or equal to a given value and an integer)of a value.
  * floor - provides the floor (largest value that is less than or equal to a given value and an integer) of a value.
  