     return rotationMatrix
 
   ###*
-   * Returns a matrix that corresponds to scaling by factors of sx, sy along
-   * the x and y axis respectively.
-   * If only one parameter is given the matrix is scaled uniformly along both axis.
-   * If the optional aboutPoint parameter is given the scaling takes place
-   * about the given point.
-   * @see Matrix#scale
-   *
-   * @param {Number} sx The amount to scale by along the x axis or uniformly if no sy is given.
-   * @param {Number} [sy] The amount to scale by along the y axis.
-   * @param {Point} [aboutPoint] The point about which the scaling occurs. Defaults to (0,0).
-   * @returns A matrix transformation representing scaling by sx and sy.
-   * @type Matrix
+  Returns a matrix that corresponds to scaling by factors of sx, sy along
+  the x and y axis respectively.
+  If only one parameter is given the matrix is scaled uniformly along both axis.
+  If the optional aboutPoint parameter is given the scaling takes place
+  about the given point.
+  @see Matrix#scale
+
+  @param {Number} sx The amount to scale by along the x axis or uniformly if no sy is given.
+  @param {Number} [sy] The amount to scale by along the y axis.
+  @param {Point} [aboutPoint] The point about which the scaling occurs. Defaults to (0,0).
+  @returns A matrix transformation representing scaling by sx and sy.
+  @type Matrix
   ###
   Matrix.scale = (sx, sy, aboutPoint) ->
     sy = sy || sx

    return scaleMatrix

  ###*
   * Returns a matrix that corresponds to a translation of tx, ty.
   * @see Matrix#translate
   *
   * @param {Number} tx The amount to translate in the x direction.
   * @param {Number} ty The amount to translate in the y direction.
   * @return A matrix transformation representing a translation by tx and ty.
   * @type Matrix
  ###
  Matrix.translation = (tx, ty) ->
    Matrix(1, 0, 0, 1, tx, ty)

  ###*
   * A constant representing the identity matrix.
   * @name IDENTITY
   * @fieldOf Matrix
  ###
  Matrix.IDENTITY = Matrix()

  ###*
   * A constant representing the horizontal flip transformation matrix.
   * @name HORIZONTAL_FLIP
   * @fieldOf Matrix
  ###
  Matrix.HORIZONTAL_FLIP = Matrix(-1, 0, 0, 1)

  ###*
   * A constant representing the vertical flip transformation matrix.
   * @name VERTICAL_FLIP
   * @fieldOf Matrix
  ###
  Matrix.VERTICAL_FLIP = Matrix(1, 0, 0, -1)


      )

    ###*
    Returns the inverse of the matrix.
    http://mathworld.wolfram.com/MatrixInverse.html
    @name inverse
    @methodOf Matrix#

    @returns A new matrix that is the inverse of this matrix.
    @type Matrix
    ###
    inverse: ->
      determinant = this.a * this.d - this.b * this.c
