Support displacement vector origin in transformations#60
Merged
paulromano merged 1 commit intomainfrom Nov 27, 2025
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #60 +/- ##
==========================================
+ Coverage 86.86% 87.06% +0.19%
==========================================
Files 3 3
Lines 731 742 +11
Branches 191 197 +6
==========================================
+ Hits 635 646 +11
Misses 52 52
Partials 44 44 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
On TR cards and TRCL keywords, MCNP allows a 13th parameter
mcalled the displacement vector origin that determines whether the displacement vector specifies the origin of the auxiliary coordinate system defined in the coordinates of the main coordinate system (m=1) or vice versa (m=-1). This PR adds support for this parameter. In the case that m=-1, it simply negates the displacement vector.