-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Description
Point.setPosition(Localizable) should use localize(long[]) instead of going dimension by dimension
imglib2/src/main/java/net/imglib2/Point.java
Lines 159 to 164 in 5b5de3a
| @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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels