◆ transformPoint()
static FloatPoint Graphics::TransformTools::transformPoint |
( |
FloatPoint |
point, |
|
|
const float |
rotate, |
|
|
const Common::Point & |
zoom, |
|
|
const bool |
mirrorX = false , |
|
|
const bool |
mirrorY = false |
|
) |
| |
|
static |
Basic transform (scale + rotate) for a single point
- Parameters
-
point | the point on which the transform is to be applied |
rotate | the angle in degrees |
zoom | zoom x,y in percent |
mirrorX | flip along the vertical axis? |
mirrorY | flip along the horizontal axis? |
◆ newRect()
- Returns
- the smallest rect that can contain the transformed sprite and, as a side-effect, "newHotspot" will tell you where the hotspot will have ended up in the new rect, for centering.
The documentation for this class was generated from the following file: