Constellation

o1.stars.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.

Parameters

name

the name of the constellation

lines

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

Attributes

Supertypes
class Object
trait Matchable
class Any

Members list

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

val lines: Vector[(Star, Star)]

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 name: String
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.