Stars Docs
Fall 2026
API

# 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

lines

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

name

  the name of the constellation

## Attributes

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

## Attributes

#### Concrete fields

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

A pair of StarCoords (X,Y), where 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), where X is the greatest x-coordinate of any star in the constellation and Y the greatest y-coordinate of any star in the constellation.

## Attributes

val minCoords: StarCoords

A pair of StarCoords (X,Y), where 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), where X is the smallest x-coordinate of any star in the constellation and Y the smallest y-coordinate of any star in the constellation.

## Attributes

val name: String
val stars: Set[Star]

All the stars in the constellation. That is, a `Set` of all the stars that appear at either end of any line in the constellation.

All the stars in the constellation. That is, a `Set` of all the stars that appear at either end of any line in the constellation.

## Attributes