-
Notifications
You must be signed in to change notification settings - Fork 232
Microsoft Contributions #285
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
Conversation
Add dot product for Quaternion
IsEqualRotation fix, if the compared quaternions are actually (component vise) close to each other.
… unaligned input test for all hash functions.
|
/AzurePipelines run |
|
Azure Pipelines could not run because the pipeline triggers exclude this branch/path. |
| template <typename Type> | ||
| bool ezQuatTemplate<Type>::IsEqualRotation(const ezQuatTemplate<Type>& qOther, float fEpsilon) const | ||
| { | ||
| if (v.IsEqual(qOther.v, 0.00001f) && ezMath::IsEqual(w, qOther.w, 0.00001f)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use fEpsilon instead of hardcoded value here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fEpsilon is used to compare the angle between the two quaternions. The first if however just checks if the quaternions are the same. Thus a different epsilon value.
No description provided.