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

Fix UnitNormMap transformation of the centre #3

Closed
wants to merge 1 commit into from

Conversation

r-owen
Copy link
Contributor

@r-owen r-owen commented Aug 1, 2017

Modify UnitNormMap to transform the centre properly, and in a way that round trips:

  • In the forward direction transform centre to [AST__BAD, ..., AST__BAD, 0]
    (since the components of the unit vector are unknown, but the norm is 0)
  • In the inverse direction transform [any_value, ..., any_value, 0] to [0, ..., 0]

Formerly UnitNormMap transform input = centre to [AST__BAD, ..., AST__BAD],
which was incorrect and did not round trip.

Modify UnitNormMap to transform the centre properly, and in a way that round trips:
- In the forward direction transform centre to [AST__BAD, ..., AST__BAD, 0]
  (since the components of the unit vector are unknown, but the norm is 0)
- In the inverse direction transform [any_value, ..., any_value, 0] to [0, ..., 0]

Formerly UnitNormMap transform input = centre to [AST__BAD, ..., AST__BAD],
which was incorrect and did not round trip.
@dsberry
Copy link
Member

dsberry commented Aug 3, 2017

Merged.

@dsberry dsberry closed this Aug 3, 2017
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.

2 participants