CP::Transform
Column major 2x3 affine transform.
Constants
IDENTITY = new
Identity transform matrix.
Constructors
bone_scale(v0 : Vect, v1 : Vect) : self
Sourcenew(a : Number = 1, b : Number = 0, c : Number = 0, d : Number = 1, tx : Number = 0, ty : Number = 0)
Construct a new transform matrix.
- (a, b) is the x basis vector.
- (c, d) is the y basis vector.
- (tx, ty) is the translation.
Construct a new transform matrix in transposed order.
ortho(bb : BB) : self
SourceCreate a rigid transformation matrix. (translation + rotation)
Instance methods
tx
Sourcety
Sourcewrap(inner : Transform) : Transform
Sourcewrap_inverse(inner : Transform) : Transform
Source