Packages

c

o1.stars

Constellation

class Constellation extends AnyRef

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

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Constellation
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Constellation(name: String, lines: Vector[(Star, Star)])

    name

    the name of the constellation

    lines

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

Value Members

  1. def isNearish(candidate: StarCoords): Boolean

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

  2. val lines: Vector[(Star, Star)]
  3. val maxCoords: StarCoords

    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.

  4. val minCoords: StarCoords

    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.

  5. val name: String
  6. val stars: Set[Star]

    All the stars in 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.