Skip to content

Fix transforms not same on all platforms - #515

Merged
dr1rrb merged 3 commits into
masterfrom
dev/dr/Transforms
Feb 1, 2019
Merged

dr1rrb merged 3 commits into
masterfrom
dev/dr/Transforms

Conversation

@dr1rrb

@dr1rrb dr1rrb commented Jan 21, 2019

Copy link
Copy Markdown
Member

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

Each transformation has its own implementation per platform, so a lot of transformations setup are not the same than UWP

What is the new behavior?

All affine transforms are now using a multi-targeted matrix based algorithm, so the result is the same on all platforms and the same as UWP.

Note: They are using the optimized Matrix3x2 which avoids some useless interop.

PR Checklist

Please check if your PR fulfills the following requirements:

Internal Issue (If applicable):
https://nventive.visualstudio.com/Umbrella/_workitems/edit/112863
https://nventive.visualstudio.com/Umbrella/_workitems/edit/144251
https://nventive.visualstudio.com/Umbrella/_workitems/edit/114367
https://nventive.visualstudio.com/Umbrella/_workitems/edit/30002
https://nventive.visualstudio.com/Umbrella/_workitems/edit/117299
https://nventive.visualstudio.com/Umbrella/_workitems/edit/31070
https://nventive.visualstudio.com/Umbrella/_workitems/edit/111339
https://nventive.visualstudio.com/Umbrella/_workitems/edit/33312
https://nventive.visualstudio.com/Umbrella/_workitems/edit/104051
https://nventive.visualstudio.com/Umbrella/_workitems/edit/64380
https://nventive.visualstudio.com/Umbrella/_workitems/edit/58019
https://nventive.visualstudio.com/Umbrella/_workitems/edit/34495
https://nventive.visualstudio.com/Umbrella/_workitems/edit/132090

@dr1rrb

dr1rrb commented Jan 21, 2019

Copy link
Copy Markdown
Member Author

Two //TODO are pending and will be validated and removed before merge (that why this PR is flagged as 'do-not-merge'). So please ignore them for review.

@dr1rrb dr1rrb added kind/bug Something isn't working do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Jan 21, 2019
@dr1rrb dr1rrb self-assigned this Jan 21, 2019
public Matrix(double m11, double m12, double m21, double m22, double offsetX, double offsetY)
{
_inner = new Matrix3x2((float)m11, (float)m12, (float)m21, (float)m22, (float)offsetX, (float)offsetY);
Inner = new Matrix3x2((float)m11, (float)m12, (float)m21, (float)m22, (float)offsetX, (float)offsetY);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

don't like having type change each time.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is used only when we use a MatrixTransform, so it's not a performance concern.

@dr1rrb
dr1rrb force-pushed the dev/dr/Transforms branch 2 times, most recently from 4eebe7c to 2579117 Compare January 31, 2019 15:48
@dr1rrb dr1rrb removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 31, 2019
@dr1rrb
dr1rrb force-pushed the dev/dr/Transforms branch 2 times, most recently from 24ee162 to 15d1ae0 Compare February 1, 2019 15:18
@dr1rrb
dr1rrb force-pushed the dev/dr/Transforms branch from a329e78 to af54876 Compare February 1, 2019 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants