Transform

doodle.algebra.Transform
trait Transform extends Algebra

Attributes

Source
Transform.scala
Graph
Supertypes
trait Algebra
class Object
trait Matchable
class Any
Known subtypes
trait GenericTransform[G]
trait Basic

Members list

Type members

Inherited types

type Drawing[_]

The effect type that methods on this algebra produce. Represents an effect that, when run, will draw something and produce a value.

The effect type that methods on this algebra produce. Represents an effect that, when run, will draw something and produce a value.

Attributes

Inherited from:
Algebra
Source
Algebra.scala

Value members

Abstract methods

def transform[A](img: Drawing[A], tx: Transform): Drawing[A]

Attributes

Source
Transform.scala

Concrete methods

def horizontalReflection[A](img: Drawing[A]): Drawing[A]

Attributes

Source
Transform.scala
def rotate[A](img: Drawing[A], angle: Angle): Drawing[A]

Attributes

Source
Transform.scala
def scale[A](img: Drawing[A], x: Double, y: Double): Drawing[A]

Attributes

Source
Transform.scala
def translate[A](img: Drawing[A], x: Double, y: Double): Drawing[A]

Attributes

Source
Transform.scala
def translate[A](img: Drawing[A], vec: Vec): Drawing[A]

Attributes

Source
Transform.scala
def verticalReflection[A](img: Drawing[A]): Drawing[A]

Attributes

Source
Transform.scala

Implicits

Inherited implicits

implicit val drawingInstance: Monad[Drawing]

Attributes

Inherited from:
Algebra
Source
Algebra.scala