toji/gl-matrix

fromQuat2 allocates a vector on every call

rafern opened this issue · 0 comments

fromQuat2 should use a temporary shared vector instead of allocating on every call, so that it's nicer to the GC

Looks like there's other functions that also do this, such as:

  • mat4 getRotation
  • quat2 fromMat4