Affine

smile.modeling.Affine
See theAffine companion class
object Affine

Attributes

Companion
class
Source
Affine.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Affine.type

Members list

Type members

Inherited and Abstract types

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def apply(a: Double, b: Double, c: Double, d: Double, e: Double, f: Double): Affine

The normalized affine with these coefficients.

The normalized affine with these coefficients.

Attributes

Throws
IllegalArgumentException

if a coefficient is not finite or the map flattens the plane onto a line

Source
Affine.scala
def mirroring(horizontally: Boolean, vertically: Boolean, center: Pos): Affine

Mirroring across the vertical line through center (horizontally), the horizontal line through it (vertically), or both.

Mirroring across the vertical line through center (horizontally), the horizontal line through it (vertically), or both.

Attributes

Source
Affine.scala
def rotation(degrees: Double, pivot: Pos): Affine

Turning by degrees around pivot, counterclockwise on screen for a positive angle, the way smile.modeling.Pos.rotateAround turns a point. Right angles are exact.

Turning by degrees around pivot, counterclockwise on screen for a positive angle, the way smile.modeling.Pos.rotateAround turns a point. Right angles are exact.

Attributes

Source
Affine.scala
def scaling(sx: Double, sy: Double): Affine

Scaling by the given factors relative to the origin.

Scaling by the given factors relative to the origin.

Attributes

Source
Affine.scala
def translation(dx: Double, dy: Double): Affine

Moving by (dx, dy).

Moving by (dx, dy).

Attributes

Source
Affine.scala

Concrete fields

Attributes

Source
Affine.scala

How far from an exact 0, 1 or -1 a linear coefficient may be, as a fraction of the largest of a to d, to become exactly that.

How far from an exact 0, 1 or -1 a linear coefficient may be, as a fraction of the largest of a to d, to become exactly that.

Attributes

Source
Affine.scala

Givens

Givens

Attributes

Source
Affine.scala