greggman / wgpu-matrix

Fast WebGPU 3d math library
https://wgpu-matrix.org
MIT License
298 stars 13 forks source link

vec2.truncate, vec2.setLength, vec2.midpoint, vec2.getCardinalDirection #8

Closed mreinstein closed 6 months ago

mreinstein commented 1 year ago

Would you be open to adding any/all of these additional functions related to vec2/3/4?

These are little helper functions that I've needed for various games/sims that haven't made it into gl-matrix

https://github.com/mreinstein/vec2-gap

I'd be happy to port these over to wgpu-matrix/typescript if this is something you'd be open to.

greggman commented 1 year ago

sounds good to me.