treeform/vmath

Expose templates for generating procedures and operators

SMT50001 opened this issue · 7 comments

Could you please expose genConstructor, genMatConstructor, genQuatConstructor to library user? For example I would like to write a library for fixed point arithmetic and use my new datatypes with vmath, but I'll need to write these templates again.

General ideas on exposing this interface to users. Maybe it will be a good idea to rename genConstructor to genVecConstructor to avoid name clash. Also it will be nice to remove the need to explicitly write constructor names which are type names in lowercase anyway.

renaming genConstructor to genVecConstructor is a good idea

Maybe I should make a commit with fixed point arithmetic to vmath instead of exposing templates?

@treeform Should I add fixed-point math to the library instead of making those templates available? If so, I'll just make a pull-request and close this issue.

Do you have a link to your fixed-point math lib? I want to test to see if it works with the new genVecConstructor.

Sorry, I don't have a link. My intention was to write the code as soon as necessary changes were made to vmath.

@treeform What should I add for it being able to be tested? https://gist.github.com/SMT50001/9998844c15a6e5ade5aa43dfa78ba592