#include <nitro/gx/g2.h>
void G2S_SetBG2Affine(
const MtxFx22 * mtx,
int centerX,
int centerY,
int x1,
int y1
);
This function sets the sub 2D Engine's BG2 affine transformation. It obtains points after affine transformation (x2, y2) using the following equation.
![]()
mtx |
Pointer to the transformation matrix |
centerX |
x-coordinate component of the center of rotation |
centerY |
y-coordinate component of the center of rotation |
x1 |
x-coordinate component prior to rotation |
y1 |
y-coordinate component prior to rotation |
None
02/09/2004 Initial Version