getTrace method

Vec3 getTrace([
  1. Vec3? target
])

Gets the matrix diagonal elements

Implementation

Vec3 getTrace([Vec3? target]) {
  target ??= Vec3();
  final e = elements;
  target.x = e[0];
  target.y = e[4];
  target.z = e[8];
  return target;
}