Scenic v0.10.2 Scenic.Primitive.Transform.Matrix View Source

Apply an arbitrary matrix.

Applies an arbitrary 4x4 matrix to a primitive. For now, only the 2-D part of the matrix actually does anything. Am using 4x4 though for future compatibility.

Example:

@matrix [ 0, 1, 2, 3,
          4, 5, 6, 7,
          8, 9, 10, 11,
          12, 13, 14, 15 ]
|> Scenic.Math.Matrix.Matrix.Utils.to_binary()

graph
|> text("Transformer!", matrix: @matrix)