Round, Rounded, Correct, Distance(x, y, z, w) and operator< addition to Vector 4#146
Conversation
…to Vector4 Signed-off-by: Lucas Fernando <lucas.costa@ee.ufcg.edu.br>
|
I tried to test the Should I change/remove the test? |
While working on #139 I noticed that the code checker would complain about Also another option may be to use std::nan(). |
Is a good option, I will check the result.
Looks like a more consistent test, I will let with this. |
Signed-off-by: Lucas Fernando <lucas.costa@ee.ufcg.edu.br>
With |
|
I don't think that you'll be able to get around the divide-by-zero issue either triggering the code check, compiler warning, or runtime error (since it's a signaling nan). I agree that using |
Great, the current PR is using just |
Resolves #71 .
This implements the functions
Round(),Rounded(),Correct(),Distance(T x, T y, T z, T w)and operator overloadoperator<(Vector4)inVector4API.It enables: