OHOS::TransformMap
Overview
Related Modules:
Description:
Transforms a rectangle, including rotation and scaling.
Since:
1.0
Version:
1.0
Summary
Public Member Functions
TransformMap () |
The default constructor used to create a TransformMap instance. |
TransformMap (const Rect &rect) |
A constructor used to create a TransformMap instance. |
A destructor used to delete the TransformMap instance. |
|
GetClockWise () const |
Checks whether the vertex coordinates of a polygon are clockwise. |
SetPolygon (const Polygon &polygon) |
|
GetPolygon () const |
|
GetPivot () const |
|
IsInvalid () const |
Checks whether the TransformMap instance is invalid. When the vertices are all 0, the TransformMap is invalid. |
GetBoxRect () const |
Obtains the minimum rectangle that can contain a polygon. All vertices of the polygon are inside this rectangle. |
Scale (const Vector2< float > scale, const Vector2< int16_t > &pivot) |
|
operator new (size_t size) |
|
operator delete (void p) |