HasPos

trait HasPos

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

class Object
trait Matchable
class Any

Value members

Abstract methods

def pos: Pos

the object’s location

the object’s location

Concrete 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.