Transform

semagrams.util.Transform
See theTransform companion object
case class Transform(z: Complex, w: Complex)

Represents an affine transformation of the 2d plane

Attributes

w

the translation factor Note: scaling is applied before translation.

z

the scaling/twisting factor

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

Apply the transform to a point

Apply the transform to a point

Attributes

Apply inverse of the transform

Apply inverse of the transform

Attributes

Returns a new transform that is shifted by by

Returns a new transform that is shifted by by

Attributes

def toSvg: String

Returns a string representing this transform in SVG style

Returns a string representing this transform in SVG style

Attributes

def zoomAtPos(factor: Double, pos: Complex): Transform

Returns a new transform that is zoomed in on pos by factor

Returns a new transform that is zoomed in on pos by factor

The old and new transforms send pos to the same point.

Attributes

def zoomBy(factor: Double): Transform

Returns a new transform that is zoomed in by factor.

Returns a new transform that is zoomed in by factor.

The old and new transforms send the origin to the same point.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product