fromNative static method

GMatrix fromNative(
  1. Matrix4 m
)

Creates a new GMatrix object based on the Matrix4 counterpart.

Implementation

static GMatrix fromNative(Matrix4 m) {
  return GMatrix(
    m.storage[0],
    m.storage[4],
    m.storage[1],
    m.storage[5],
    m.storage[12],
    m.storage[13],
  );
}