Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matrix / Vector template implementation #110

Open
AODQ opened this issue Jul 18, 2019 · 0 comments
Open

Matrix / Vector template implementation #110

AODQ opened this issue Jul 18, 2019 · 0 comments

Comments

@AODQ
Copy link

AODQ commented Jul 18, 2019

Not really a need to have multiple header implementations of matrix / vectors. There should only be one implementation of matrix / vector, of course OSG makes this difficult but hopefully it is possible.

Example vector implementation

template <size_t Len, typename T> struct Vec {
  std::array<T, Len> data;
};

template <typename T> struct Vec<3, T> final : Vec<0, T> {
  Vec3<3, T> normalized();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants