Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Primitive Shapes #12
Primitive Shapes #12
Changes from 15 commits
6a67443
3f4c7e0
fa1fc1c
7f5f21f
9a890e7
175b8a0
b43acde
3533994
68f5485
08565cc
66d8c9d
ceac06d
88af32e
e6a7275
f8c8fbe
6c9cbfd
da6871e
47ea3b6
5e84667
f663bd1
cef33e9
9dd6b67
b67f30e
47bcc26
7d58f91
a2aa8cf
bd9d5e2
0f25cfe
b3fcd7d
cede313
5e381f6
019047e
24dbd0b
9ef4d2e
f37352e
c50b330
bc99e5b
e164fa5
cc192cb
2ff5978
e88a42a
2a33756
5222ee8
fbcc8da
bafe5a5
3494f3a
2ac6358
5ec59ee
550e522
46ae46c
7a5e2c1
ca533b1
957bfca
dc58497
be92586
7981ae8
f632b2b
69e3ab0
03eaf5f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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'm curious is this is worth bringing into scope for the RFC.
But having a
guaranteed to be normalized...
is an invariant that a user has to remember via docs.Is it worth having some extra type-safe wrappers for linear algebra types such as
NormalizedVec3
.This way the invariant the the vector is normalized is held though the type interface and not just through docs?
I initially discussed this here with the directional light PR.
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.
1 > 2 >> 3 for me. However, option 1 is challenging as crate names can't start with a number IIRC.
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.
Right, the point here is namespacing vs. unique symmetric names vs. unique asymmetric names.
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 think a combination of 1 and 2, breaking them into their own crates is a good idea, but at the same time, to remove any confusion over what of the 2 types it is, they should have the
2d/3d
suffix