Skip to main content

Function: scaleRelativeToPoint()

scaleRelativeToPoint(point, pivot, scale): Vector2

Defined in: math/scale-relative-to-point.ts:11

Scales a point relative to a pivot point by a given scale factor.

Parameters

point

Vector2

The point to scale.

pivot

Vector2

The pivot point to scale relative to.

scale

Vector2

The scale factor as a Vector2.

Returns

Vector2

A new Vector2 representing the scaled point.