Coordinate

doodle.core.Coordinate
See theCoordinate companion object
sealed trait Coordinate

A Coordinate represents a position on an axis relative to a bounding box's origin. Coordinates can be specified as a (1D) point or as a percentage relative to the edge of the bounding box.

For example, Coordinate.point(10) is ten units from the origin in the positive direction, while Coordinate.percent(100) is the positive (top or right) edge of the bounding box.

Attributes

Companion:
object
Source:
Coordinate.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Add
class Percent
class Point
class Subtract

Members list

Concise view

Value members

Concrete methods

def +(that: Coordinate): Coordinate

Attributes

Source:
Coordinate.scala
def -(that: Coordinate): Coordinate

Attributes

Source:
Coordinate.scala

Attributes

Source:
Coordinate.scala
def eval(negative: Double, positive: Double): Double

Evaluate this Coordinate given values for -100% and +100%

Evaluate this Coordinate given values for -100% and +100%

Attributes

Source:
Coordinate.scala

Attributes

Source:
Coordinate.scala