Class ImmutableCoordI2
- java.lang.Object
-
- de.extio.spacecraft.shared.model.world.ImmutableCoordI2
-
- All Implemented Interfaces:
Coord2Conversion
,CoordI2
,HasPosition2
,Comparable<CoordI2>
public final class ImmutableCoordI2 extends Object implements CoordI2
Immutable implementation of CoordI2
-
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.extio.spacecraft.shared.model.world.Coord2Conversion
toImmutableCoordD2, toImmutableCoordI2, toMutableCoordD2, toMutableCoordI2, toVNorm
-
Methods inherited from interface de.extio.spacecraft.shared.model.world.CoordI2
compareTo, getPosition
-
-
-
-
Method Detail
-
zero
public static ImmutableCoordI2 zero()
-
one
public static ImmutableCoordI2 one()
-
create
public static ImmutableCoordI2 create()
-
create
public static ImmutableCoordI2 create(HasPosition2 other)
-
create
public static ImmutableCoordI2 create(int x, int y)
-
create
public static ImmutableCoordI2 create(CoordD2 other)
-
setXY
public ImmutableCoordI2 setXY(HasPosition2 other)
-
setXY
public ImmutableCoordI2 setXY(int x, int y)
-
add
public ImmutableCoordI2 add(HasPosition2 delta)
-
add
public ImmutableCoordI2 add(int dx, int dy)
-
add
public ImmutableCoordI2 add(int n)
-
substract
public ImmutableCoordI2 substract(HasPosition2 delta)
-
substract
public ImmutableCoordI2 substract(int dx, int dy)
-
substract
public ImmutableCoordI2 substract(int n)
-
multiply
public ImmutableCoordI2 multiply(HasPosition2 delta)
-
multiply
public ImmutableCoordI2 multiply(int dx, int dy)
-
multiply
public ImmutableCoordI2 multiply(int n)
-
divide
public ImmutableCoordI2 divide(HasPosition2 delta)
-
divide
public ImmutableCoordI2 divide(int dx, int dy)
-
divide
public ImmutableCoordI2 divide(int n)
-
-