Skip to content
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

afw/DM-3549: transform features in support of new astrometry fitter #100

Merged
merged 2 commits into from Oct 26, 2016

Conversation

TallJimbo
Copy link
Member

No description provided.

@@ -109,7 +109,7 @@ class AffineTransform {
) : _linear(linear), _translation(translation) {}

/** Construct an AffineTransform from a LinearTransform. */
explicit AffineTransform(LinearTransform const & linear)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm just curious: why is this change helpful?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It allows you to pass a LinearTransform to functions that take an AffineTransform without an explicit conversion. In particular, that includes overloaded operators, so it lets me do linear1 + affine2 instead of AffineTransform(linear1) + affine1.

@r-owen
Copy link
Contributor

r-owen commented Oct 5, 2016

This looks like a very useful change

This will allow LinearTransforms to participate in AffineTransform
operator overloading with the appropriate promotion.
@TallJimbo TallJimbo merged commit 777a146 into master Oct 26, 2016
@ktlim ktlim deleted the tickets/DM-3549 branch August 25, 2018 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants