GTransform
This class represents an affine transformation. Essentially, it's a 2 by 2 matrix, plus two fields for an and transformation.
Applying such a transformation multiplies the vector field that makes up a given GObject by ...then transforms the space by .
This class is not intended to be used directly. Every GObject contains one, and its properties may be updated using methods like GObject::shear, etc.
Factory Methods
- function GTransform()
- Creates a new GTransform with the identity matrix, i.e. and no transform.
- function GTransform(transform)
- Creates a new GTransform that's a copy of the passed-in transform.
- function GTransform(a, b, c, d[, tx=0, ty=0])
- Creates a new GTransform with the following matrix: tx and ty can also be specified in the constructor, but default to 0,0.
Fields
- GTransform::a
- GTransform::b
- GTransform::c
- GTransform::d
- The matrix values , , , and , respectively.
- GTransform::tx
- GTransform::ty
- The and transform values, respectively.