Method ScaleAroundPoint
ScaleAroundPoint(Vector2, Vector2, Vector2)
Scales a Vector2 using the origin as the pivot point.
Declaration
public static Vector2 ScaleAroundPoint(this Vector2 v, Vector2 origin, Vector2 scale)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | v | The Vector2 to scale. |
Vector2 | origin | The center point to use as the pivot point. |
Vector2 | scale | Unit(s) to scale by. |
Returns
Type | Description |
---|---|
Vector2 | The scaled Vector2 |