Skip to content

Improve Point.setPosition #341

@tpietzsch

Description

@tpietzsch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions