public class

Cell

extends Location
java.lang.Object
   ↳ org.apache.commons.math.geometry.Vector3D
     ↳ uk.ac.imperial.presage2.util.location.Location
       ↳ uk.ac.imperial.presage2.util.location.Cell

Summary

[Expand]
Inherited Constants
From class org.apache.commons.math.geometry.Vector3D
Public Constructors
Cell(int x, int y)
Cell(int x, int y, int z)
Public Methods
Move getMoveTo(Location l)
Get the Move from this Location which will result in the location l.
Move getMoveTo(Location l, double speed)
Get the Move from this Location towards a location l with a magnitude less than or equal to speed.
[Expand]
Inherited Methods
From class uk.ac.imperial.presage2.util.location.Location
From class org.apache.commons.math.geometry.Vector3D
From class java.lang.Object
From interface uk.ac.imperial.presage2.util.location.HasLocation

Public Constructors

public Cell (int x, int y)

public Cell (int x, int y, int z)

Public Methods

public Move getMoveTo (Location l)

Get the Move from this Location which will result in the location l.

Returns
  • Move m such that this.add(m) will return a vector v.equals(l)

public Move getMoveTo (Location l, double speed)

Get the Move from this Location towards a location l with a magnitude less than or equal to speed.