Scenic.Math.Matrix.scale

You're seeing just the function scale, go back to Scenic.Math.Matrix module for more information.

Specs

scale(
  matrix :: Scenic.Math.matrix(),
  scale :: number() | Scenic.Math.vector_2() | nil
) :: Scenic.Math.matrix()

Multiply a matrix by a scale factor.

Parameters:

  • matrix: The incoming source matrix
  • scale: the amount to scale by. Can be either a number, a vector, or nil (which does nothing)

Returns: A binary matrix