Class ImmutableCoordD2
- java.lang.Object
-
- de.extio.spacecraft.shared.model.world.ImmutableCoordD2
-
- All Implemented Interfaces:
Coord2Conversion
,CoordD2
,Comparable<CoordD2>
public final class ImmutableCoordD2 extends Object implements CoordD2
Immutable implementation of CoordD2
-
-
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
-
-
-
-
Method Detail
-
zero
public static ImmutableCoordD2 zero()
-
one
public static ImmutableCoordD2 one()
-
create
public static ImmutableCoordD2 create()
-
create
public static ImmutableCoordD2 create(CoordD2 other)
-
create
public static ImmutableCoordD2 create(double x, double y)
-
create
public static ImmutableCoordD2 create(HasPosition2 hasPosition2)
-
setXY
public ImmutableCoordD2 setXY(CoordD2 other)
-
setXY
public ImmutableCoordD2 setXY(double x, double y)
-
add
public ImmutableCoordD2 add(CoordD2 delta)
-
add
public ImmutableCoordD2 add(double dx, double dy)
-
add
public ImmutableCoordD2 add(double n)
-
substract
public ImmutableCoordD2 substract(CoordD2 delta)
-
substract
public ImmutableCoordD2 substract(double dx, double dy)
-
substract
public ImmutableCoordD2 substract(double n)
-
multiply
public ImmutableCoordD2 multiply(CoordD2 delta)
-
multiply
public ImmutableCoordD2 multiply(double dx, double dy)
-
divide
public ImmutableCoordD2 divide(CoordD2 delta)
-
divide
public ImmutableCoordD2 divide(double dx, double dy)
-
-