Pos

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

Companion:
class
trait Product
trait Mirror
class Object
trait Matchable
class Any
Pos.type

Type members

Inherited types

The names of the product elements

The names of the product elements

Inherited from:
Mirror

The name of the type

The name of the type

Inherited from:
Mirror

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.

Givens