-
Notifications
You must be signed in to change notification settings - Fork 20
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
add glam feature #21
add glam feature #21
Conversation
#[cfg(feature = "nalgebra")] | ||
let mut vOs = (*pTriInfos.offset(f as isize)).vOs | ||
- (n.dot(&(*pTriInfos.offset(f as isize)).vOs) * n); | ||
vOt = (*pTriInfos.offset(f as isize)).vOt | ||
#[cfg(feature = "nalgebra")] | ||
let mut vOt = (*pTriInfos.offset(f as isize)).vOt | ||
- (n.dot(&(*pTriInfos.offset(f as isize)).vOt) * n); | ||
#[cfg(feature = "glam")] | ||
let mut vOs = (*pTriInfos.offset(f as isize)).vOs | ||
- (n.dot((*pTriInfos.offset(f as isize)).vOs) * n); | ||
#[cfg(feature = "glam")] | ||
let mut vOt = (*pTriInfos.offset(f as isize)).vOt | ||
- (n.dot((*pTriInfos.offset(f as isize)).vOt) * n); |
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.
These lines look identical to me. Am I missing something?
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.
I believe the nalgebra version needed to borrow the parameter of the n.dot(..)
function.
Of course :) |
The build seems to be broken and CI is no longer working. I need to confirm the library is working before I release a new version. |
Following up on this, did you confirm whether this was fixed or not? |
This adds a
glam
feature which uses the glam crate instead ofnalgebra
to reduce the amount of dependencies for crates not usingnalgebra
(specifically the bevy engine).Let me know if this is something you'd merge, otherwise if it is okay if I fork this repo and publish it using glam (#20).