Packages

  • package o1
    Definition Classes
    root
  • package grid

    This package contains tools for working with grid-like two-dimensional structures.

    This package contains tools for working with grid-like two-dimensional structures.

    The contents of this package have aliases in the top-level package o1, so they are accessible to students simply via import o1._.

    Definition Classes
    o1
  • object CompassDir extends Serializable

    This companion object of class CompassDir provides a selection of related constants and utility methods.

    This companion object of class CompassDir provides a selection of related constants and utility methods.

    This object has an alias in the top-level package o1, so it’s accessible to students simply via import o1._.

    Definition Classes
    grid
  • East
  • North
  • South
  • West

object North extends CompassDir with Product with Serializable

This immutable singleton object represents the northwardly compass direction. It’s one of the four predefined instances of class CompassDir. It has an alias in the top-level package o1, so it’s accessible to students simply via import o1._.

Linear Supertypes
CompassDir, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. North
  2. CompassDir
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def clockwise: CompassDir

    Returns the next of the four compass directions, moving clockwise from this one.

    Returns the next of the four compass directions, moving clockwise from this one. For instance, calling this method on North returns East.

    Definition Classes
    CompassDir
  2. def counterClockwise: CompassDir

    Returns the next of the four compass directions, moving counterclockwise from this one.

    Returns the next of the four compass directions, moving counterclockwise from this one. For instance, calling this method on North returns West.

    Definition Classes
    CompassDir
  3. def productElementName(n: Int): String
    Definition Classes
    Product
  4. def productElementNames: Iterator[String]
    Definition Classes
    Product
  5. def toString: String

    Returns a textual description of this direction, which is the English name of the direction.

    Returns a textual description of this direction, which is the English name of the direction.

    Definition Classes
    CompassDir → AnyRef → Any
  6. val xStep: Int
    Definition Classes
    CompassDir
  7. val yStep: Int
    Definition Classes
    CompassDir