-
Notifications
You must be signed in to change notification settings - Fork 110
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
Frame inversion #1415
Frame inversion #1415
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1415 +/- ##
==========================================
- Coverage 61.71% 61.71% -0.01%
==========================================
Files 207 207
Lines 22292 22302 +10
==========================================
+ Hits 13757 13763 +6
- Misses 8535 8539 +4 ☔ View full report in Codecov by Sentry. |
@@ -604,6 +604,18 @@ def to_transformation(self): | |||
# Methods | |||
# ========================================================================== | |||
|
|||
def invert(self): |
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.
not sure but should this be maybe called flip
?
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.
in Vector
it is also invert
, but we can add an alias in both perhaps
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.
lgtm
just a couple of small comments
def test_frame_invert(): | ||
frame = Frame([0, 0, 0]) | ||
|
||
assert TOL.is_close(frame.xaxis.dot([1, 0, 0]), 1.0) |
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.
just out of curiosity what's the advantage of this over TOL.is_allclose(frame.xaxis, [1, 0, 0])
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.
no advantage. am just used to expressing this using dot
What type of change is this?
Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.CHANGELOG.md
file in theUnreleased
section under the most fitting heading (e.g.Added
,Changed
,Removed
).invoke test
).invoke lint
).compas.datastructures.Mesh
.