| java.lang.Object | ||
| ↳ | org.apache.commons.math.geometry.Vector3D | |
| ↳ | uk.ac.imperial.presage2.util.location.Location | |
Known Direct Subclasses
|
This represents a location in the environment space as defined by a 3D vector. We the apache commons Vector3D class for this vector.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.commons.math.geometry.Vector3D
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create a 2D location with the given x and y coordinates.
| |||||||||||
Create a 3D location with the given x, y and z coordinates.
| |||||||||||
Create a location from an existing Vector3D.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Get the distance between this Location and the location l
| |||||||||||
Get the
Move from this Location which will result in the location
l. | |||||||||||
Get the direction vector between two point vectors.
| |||||||||||
Returns the result of
contains(Location) for a and this. | |||||||||||
Not available in Immutable Location class.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.commons.math.geometry.Vector3D
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
uk.ac.imperial.presage2.util.location.HasLocation
| |||||||||||
Create a 2D location with the given x and y coordinates.
Create a 3D location with the given x, y and z coordinates.
Get the distance between this Location and the location l
Get the Move from this Location towards a location l
with a magnitude less than or equal to speed.
Get the direction vector between two point vectors.
Returns the result of contains(Location) for a and this.
Allows more intuitive syntax when checking that a Location is in
an Area.
Not available in Immutable Location class.