Pos

o1.world.Pos
See thePos companion class
object Pos

This companion object of class Pos provides alternative methods for creating new Pos objects. It has an alias in the top-level package o1, so it’s accessible to students simply via import o1._.

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any

Members list

Inherited Not inherited
  • Not inherited
  • Mirror
Keywords
  • no keywords
  • inline

Type members

Value members

Concrete methods

inline def apply(xyPair: (Double, Double)): Pos

Constructs a Pos instance from the given pair of x and y coordinates.

Constructs a Pos instance from the given pair of x and y coordinates.

inline def apply(point: Point): Pos

Constructs a Pos instance from the coordinates of the given Point object.

Constructs a Pos instance from the coordinates of the given Point object.

Concrete fields

val Origin: Pos

The origin (0,0) of the coordinate system as a Pos instance.

The origin (0,0) of the coordinate system as a Pos instance.

Givens

Givens