Cartesian

doodle.core.Point$.Cartesian
final case class Cartesian(x: Double, y: Double) extends Point

Attributes

Source
Point.scala
Graph
Supertypes
class Point
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def angle: Angle

Attributes

Source
Point.scala
def r: Double

Attributes

Source
Point.scala

Inherited methods

def +(vec: Vec): Point

Attributes

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

Attributes

Inherited from:
Point
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

Inherited from:
Point
Source
Point.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
def rotate(angle: Angle): Point

Attributes

Inherited from:
Point
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

Inherited from:
Point
Source
Point.scala

Attributes

Inherited from:
Point
Source
Point.scala
def toPolar: Polar

Attributes

Inherited from:
Point
Source
Point.scala
def toVec: Vec

Attributes

Inherited from:
Point
Source
Point.scala