- cpTransformInverse
cpTransform cpTransformInverse(cpTransform t)
Get the inverse of a transform matrix.
- cpTransformMult
cpTransform cpTransformMult(cpTransform t1, cpTransform t2)
Multiply two transformation matrices.
- cpTransformNew
cpTransform cpTransformNew(cpFloat a, cpFloat b, cpFloat c, cpFloat d, cpFloat tx, cpFloat ty)
Construct a new transform matrix.
(a, b) is the x basis vector.
(c, d) is the y basis vector.
(tx, ty) is the translation.
- cpTransformNewTranspose
cpTransform cpTransformNewTranspose(cpFloat a, cpFloat c, cpFloat tx, cpFloat b, cpFloat d, cpFloat ty)
Construct a new transform matrix in transposed order.
- cpTransformPoint
cpVect cpTransformPoint(cpTransform t, cpVect p)
Transform an absolute point. (i.e. a vertex)
- cpTransformRigid
cpTransform cpTransformRigid(cpVect translate, cpFloat radians)
Create a rigid transformation matrix. (transation + rotation)
- cpTransformRigidInverse
cpTransform cpTransformRigidInverse(cpTransform t)
Fast inverse of a rigid transformation matrix.
- cpTransformRotate
cpTransform cpTransformRotate(cpFloat radians)
Create a rotation matrix.
- cpTransformScale
cpTransform cpTransformScale(cpFloat scaleX, cpFloat scaleY)
- cpTransformTranslate
cpTransform cpTransformTranslate(cpVect translate)
Create a transation matrix.
- cpTransformVect
cpVect cpTransformVect(cpTransform t, cpVect v)
Transform a vector (i.e. a normal)
- cpTransformbBB
cpBB cpTransformbBB(cpTransform t, cpBB bb)