alchemist
alchemist
/
it.unibo.alchemist.model.implementations.positions
/
AbstractPosition
Abstract
Position
abstract
class
AbstractPosition
<
P
:
Position
<
P
>
?
>
:
Position
<
P
>
Content copied to clipboard
N-dimensional position.
Functions
Parameters
Inheritors
Parameters
<P>
actual type
Functions
bounding
Box
Link copied to clipboard
fun
boundingBox
(
range
:
Double
)
:
List
<
P
>
Content copied to clipboard
distance
To
Link copied to clipboard
fun
distanceTo
(
@
Nonnull
other
:
P
)
:
Double
Content copied to clipboard
div
Link copied to clipboard
@
Nonnull
fun
div
(
other
:
Double
)
:
P
Content copied to clipboard
Division by a number.
equals
Link copied to clipboard
fun
equals
(
o
:
Any
)
:
Boolean
Content copied to clipboard
get
Coordinate
Link copied to clipboard
fun
getCoordinate
(
dim
:
Int
)
:
Double
Content copied to clipboard
get
Coordinates
Link copied to clipboard
@
Nonnull
fun
getCoordinates
(
)
:
Array
<
Double
>
Content copied to clipboard
get
Dimensions
Link copied to clipboard
fun
getDimensions
(
)
:
Int
Content copied to clipboard
hash
Code
Link copied to clipboard
fun
hashCode
(
)
:
Int
Content copied to clipboard
minus
Link copied to clipboard
@
Nonnull
fun
minus
(
@
Nonnull
other
:
P
)
:
P
Content copied to clipboard
Same as
minus
, with the internal representation of other.
@
Nonnull
fun
minus
(
@
Nonnull
other
:
Array
<
Double
>
)
:
P
Content copied to clipboard
plus
Link copied to clipboard
@
Nonnull
fun
plus
(
@
Nonnull
other
:
P
)
:
P
Content copied to clipboard
Same as
plus
, with the internal representation of other.
@
Nonnull
fun
plus
(
@
Nonnull
other
:
Array
<
Double
>
)
:
P
Content copied to clipboard
times
Link copied to clipboard
@
Nonnull
fun
times
(
other
:
Double
)
:
P
Content copied to clipboard
Multiplication by a number.
to
String
Link copied to clipboard
open
fun
toString
(
)
:
String
Content copied to clipboard
Prints the coordinates.
Inheritors
AbstractEuclideanPosition
Link copied to clipboard