giawa / opengl4csharp

OpenGL 4 Bindings (partially based on OpenTK) for C#
Other
232 stars 61 forks source link

Vector Refactorings #55

Closed giawa closed 4 years ago

giawa commented 4 years ago

General Notes

This change adds Get to the Vector2 class, removes code duplication, adds CopyTo for vectors without System.Numerics and adds an exception for Get if the index is out of range.

Testing

Limited testing - made sure it compiled and ran a few local tests.

ghost commented 4 years ago

I think this should be merged. Once it is, I will finish my matrix pull request.

giawa commented 4 years ago

Awesome, thanks for taking a look! I implemented the suggestions you made.