setTrace method

void setTrace(
  1. Vec3 vector
)

Sets the matrix diagonal elements from a Vec3

Implementation

void setTrace(Vec3 vector){
  final e = elements;
  e[0] = vector.x;
  e[4] = vector.y;
  e[8] = vector.z;
}