Point

doodle.core.Point
See thePoint companion object
sealed abstract class Point extends Product, Serializable

Attributes

Companion
object
Source
Point.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class Cartesian
class Polar

Members list

Value members

Abstract methods

def angle: Angle

Attributes

Source
Point.scala
def r: Double

Attributes

Source
Point.scala
def x: Double

Attributes

Source
Point.scala
def y: Double

Attributes

Source
Point.scala

Concrete methods

def +(vec: Vec): Point

Attributes

Source
Point.scala
def -(that: Point): Vec

Attributes

Source
Point.scala
def lengthen(r: Double): Point

Scale the length of this point by adding its length (radius, in polar form) to the given factor.

Scale the length of this point by adding its length (radius, in polar form) to the given factor.

Attributes

Source
Point.scala
def rotate(angle: Angle): Point

Attributes

Source
Point.scala
def scaleLength(factor: Double): Point

Scale the length of this point by multiplying its length (radius, in polar form) by the given factor.

Scale the length of this point by multiplying its length (radius, in polar form) by the given factor.

Attributes

Source
Point.scala

Attributes

Source
Point.scala
def toPolar: Polar

Attributes

Source
Point.scala
def toVec: Vec

Attributes

Source
Point.scala

Inherited methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product