-
Notifications
You must be signed in to change notification settings - Fork 21
fix Ge.Matrix3d.scale3d()
#450
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1899,7 +1899,7 @@ static AcGeScale3d AcGeMatrix3dGetScaling3d(const AcGeMatrix3d& xf) | |
| AcGeVector3d y; | ||
| AcGeVector3d z; | ||
| xf.getCoordSystem(pnt, x, y, z); | ||
| return AcGeScale3d(x.length(), y.length(), z.length()); | ||
| return AcGeScale3d(x.x, y.y, z.z); | ||
|
||
| } | ||
|
|
||
| static AcGePoint3d AcGeMatrix3dGetOrigin(const AcGeMatrix3d& xf) | ||
|
|
||
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.
The 2D version of this function (AcGeMatrix2dGetScaling2d at line 865) still uses x.length() and y.length(), which would have the same issue with negative scaling factors. Consider applying the same fix to the 2D version for consistency: return AcGeScale2d(x.x, y.y) instead of AcGeScale2d(x.length(), y.length()).
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.
@copilot open a new pull request to apply changes based on this feedback