Coordinate

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.

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

Value members

Concrete methods

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%

Source:
Coordinate.scala