Constellation

class Constellation(val name: String, val lines: Vector[(Star, Star)])

Each Constellation object represents a constellation visible on a star map. A constellation consists of one or more imaginary “lines” between stars.

Value parameters:
lines

one or more pairs of stars; each pair defines an imaginary line between two stars

name

the name of the constellation

class Object
trait Matchable
class Any

Value members

Concrete methods

def isNearish(candidate: StarCoords): Boolean

Determines whether the given coordinates are “roughly in the neighborhood” of this constellation on the star map.

Determines whether the given coordinates are “roughly in the neighborhood” of this constellation on the star map.

Concrete fields

A pair of StarCoords (X,Y), so that X is the greatest x coordinate of any star in the constellation and Y the greatest y coordinate of any star in the constellation.

A pair of StarCoords (X,Y), so that X is the greatest x coordinate of any star in the constellation and Y the greatest y coordinate of any star in the constellation.

A pair of StarCoords (X,Y), so that X is the smallest x coordinate of any star in the constellation and Y the smallest y coordinate of any star in the constellation.

A pair of StarCoords (X,Y), so that X is the smallest x coordinate of any star in the constellation and Y the smallest y coordinate of any star in the constellation.

val stars: Set[Star]

All the stars in the constellation. That is, all the stars that are at one end of any of the lines that form the constellation.

All the stars in the constellation. That is, all the stars that are at one end of any of the lines that form the constellation.