# G2S_SetBG2Affine

## C Specification

      #include <nitro/gx/g2.h>

      void G2S_SetBG2Affine(
      const MtxFx22 * mtx,
      int centerX,
      int centerY,
      int x1,
      int y1
      );

## Arguments

mtx | Pointer to the conversion matrix
`centerX` | x-component of the coordinates of the center of rotation
`centerY` | y-component of the coordinates of the center of rotation
`x1` | x-component of the coordinates before rotation
`y1` | y-component of the coordinates before rotation

## Return Values

None.

## Description

This function sets the sub 2D Engine's BG2 affine transformation. The point `(x2, y2)` after affine transformation is obtained with the following formula:

## See Also

G2S_SetBG3Affine

## Revision History

02/09/2004 Initial version