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

Improve Point.setPosition #341

Open
tpietzsch opened this issue Oct 5, 2023 · 0 comments
Open

Improve Point.setPosition #341

tpietzsch opened this issue Oct 5, 2023 · 0 comments

Comments

@tpietzsch
Copy link
Member

Point.setPosition(Localizable) should use localize(long[]) instead of going dimension by dimension

@Override
public void setPosition( final Localizable localizable )
{
for ( int d = 0; d < n; d++ )
position[ d ] = localizable.getLongPosition( d );
}

Remember that Point and Localizable may have different numDimensions(). So think a bit about what is the right thing to do.
Also check RealPoint, probably something similar should be done there.

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

No branches or pull requests

1 participant