View Source Scenic.Primitive.Transform.Matrix (Scenic v0.11.2)

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)

Link to this section Summary

Link to this section Functions