-
Notifications
You must be signed in to change notification settings - Fork 2
TransformablePolygon
Isuru Kusumal Rajapakse edited this page Jun 18, 2017
·
2 revisions
- Represents a component that defines a behaviors like transform, center for Polygons etc.
Void
| Name | Type | Description | |
|---|---|---|---|
| width | int |
- desired width. | |
| height | int |
- desired height. |
Void
transform the polygon to the given scale
| Name | Type | Description | |
|---|---|---|---|
| byX | int |
- increse/decrease in width. | |
| byY | int |
- increse/decrease in height. |
Void
| Name | Type | Description | |
|---|---|---|---|
| x=width/2 | int |
- desired center in the x-cordinate. | Optional |
| y=height/2 | int |
- desired center in the y-cordinate. | Optional |
Void
initialise the state of the Transformable component
Void