-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
javacpp-port: operators for tdme/math/* #2
Comments
Examples would for Vector3 would be: Vector3 a + Vector3 b Vector3 a - Vector3 b Vector3 a * float b Vector3 a * Vector3 b Vector3 a / float b Vector3 a / Vector3 b +=,-=,*=,/= would be interessting too. Vector2, Vector4, Quaternion and Matrix are similar, but I can also provide a list if required. |
Do you still need this done? |
Hi thank you very much for asking, a colleague is already working on it. If there is any reason to do so I will come back to you. |
- add mathematical methods add(const Vector4& v), sub(const Vector4& v), equals(const Vector4& v), and equals(const Vector4& v, float tolerance) to class Vector4 - add same set of operators as for Vector2 and Vector3 to class Vector4
…corresponding test MathOperatorTest
JAVA does not support operators. C++ does.
Implement operators for tdme/math/*, e.g. Vector3
All the math is in place by inline methods and should even just be called when implementing operators.
The text was updated successfully, but these errors were encountered: