Point

case class Point(x: Double, y: Double)

2D point

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def distance(p: Point): Double
def translate(dx: Double, dy: Double): Point

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product