felselva / mathc

Pure C math library for 2D and 3D programming
zlib License
703 stars 56 forks source link

Add vectors with integer fields #3

Closed felselva closed 6 years ago

felselva commented 6 years ago

Vectors with integer fields are less used, but are still usable. They won't have as many functions as the vectors with float fields, but they will have minimally the basic math operation functions.

felselva commented 6 years ago

What does that mean?

RandyGaul commented 6 years ago

spambot

cxong commented 6 years ago

I've built a 2D integer vector module for C-Dogs SDL, you can take a look at the interface here: https://github.com/cxong/cdogs-sdl/blob/master/src/cdogs/vector.h If you're interested, I'll be happy to adapt this code into this project, with your choice of license, naming conventions etc.

felselva commented 6 years ago

I'm still in doubt if I will add vectors with integer (so far, float points are doing the job). Thanks, anyway!

felselva commented 6 years ago

I'm closing, because float vectors has proven to be good enough, in my opinion.