Construct a new transform matrix. (a, b) is the x basis vector. (c, d) is the y basis vector. (tx, ty) is the translation.

cpTransformNew(a, b, c, d, tx, ty)

Arguments

a

[cpFloat]

b

[cpFloat]

c

[cpFloat]

d

[cpFloat]

tx

[cpFloat]

ty

[cpFloat]

Value

[cpTransform *]

Details

C function prototype: static inline cpTransform cpTransformNew(cpFloat a, cpFloat b, cpFloat c, cpFloat d, cpFloat tx, cpFloat ty)