gl-matrix icon indicating copy to clipboard operation
gl-matrix copied to clipboard

fromQuat2 allocates a vector on every call

Open rafern opened this issue 2 years ago • 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

rafern avatar Oct 02 '23 10:10 rafern