public class LocalizablePoint extends Object implements Localizable
Constructor and Description |
---|
LocalizablePoint(float[] position) |
LocalizablePoint(int numDimensions) |
LocalizablePoint(int[] position) |
Modifier and Type | Method and Description |
---|---|
void |
fwd() |
void |
fwd(long steps) |
int[] |
getPosition()
Return a copy of the current position.
|
int |
getPosition(int dim)
Return the current position in a given dimension.
|
void |
getPosition(int[] position)
Write the current position into the passed array.
|
String |
getPositionAsString()
Create a human-readable
String representation of the current
position. |
public LocalizablePoint(int[] position)
public LocalizablePoint(float[] position)
public LocalizablePoint(int numDimensions)
public void getPosition(int[] position)
Localizable
getPosition
in interface Localizable
public int[] getPosition()
Localizable
getPosition
in interface Localizable
public int getPosition(int dim)
Localizable
getPosition
in interface Localizable
public String getPositionAsString()
Localizable
String
representation of the current
position.getPositionAsString
in interface Localizable
Copyright © 2015–2021 Fiji. All rights reserved.