AffineTransform

org.nspl.AffineTransform
See theAffineTransform companion object
class AffineTransform(val m0: Double, val m1: Double, val m2: Double, val m3: Double, val m4: Double, val m5: Double)

2D Affine Transformation Matrix in row major order

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

returns (tx mm this) in terms of transformations returns a transformation which first applies this then applies tx

returns (tx mm this) in terms of transformations returns a transformation which first applies this then applies tx

Attributes

returns (this mm tx) in terms of transformations returns a transformation which first applies tx then applies this

returns (this mm tx) in terms of transformations returns a transformation which first applies tx then applies this

Attributes

def rotate(rad: Double, x: Double, y: Double): AffineTransform

returns a transformation which applies this then rotates around (x,y) with rad

returns a transformation which applies this then rotates around (x,y) with rad

Attributes

def rotate(rad: Double): AffineTransform

returns a transformation which applies this then rotates around (0,0) with rad

returns a transformation which applies this then rotates around (0,0) with rad

Attributes

def scale(x: Double, y: Double): AffineTransform

Returns a tranformation which applies this then scales

Returns a tranformation which applies this then scales

Attributes

def scaleThenTranslate(tx: Double, ty: Double, sx: Double, sy: Double): AffineTransform

Returns a transformation which applies this then scales then translates

Returns a transformation which applies this then scales then translates

Attributes

def transform(stroke: Stroke): Stroke
def transform(x: Double, y: Double): Point
def transform(p: Point): Point
def transformBounds(x: Double, y: Double, w: Double, h: Double, anchor: Option[Point]): Bounds
def translate(x: Double, y: Double): AffineTransform

Returns a tranformation which applies this then translates

Returns a tranformation which applies this then translates

Attributes

Concrete fields

val m0: Double
val m1: Double
val m2: Double
val m3: Double
val m4: Double
val m5: Double