MutablePos

trait MutablePos extends HasPos

A supertype for objects that have a mutable location in two-dimensional space.

trait HasPos
class Object
trait Matchable
class Any

Value members

Inherited methods

def distance(another: HasPos): Double

Determines the distance (“as the crow flies”) between this object’s pos and that of the given object.

Determines the distance (“as the crow flies”) between this object’s pos and that of the given object.

Inherited from:
HasPos

Abstract fields

var pos: Pos

the object’s location

the object’s location