scale

open fun scale(source: Vector2f, dest: Vector2f): Vector2f

Scales the vector by the UI_SCALING value. This modifies and returns the destination vector. If the destination vector is null, a new Vector is returned with the scaled source. The source vector is not modified unless it is also provided as the dest argument.

Return

dest vector as a scaled copy of source

Parameters

source

provided vector

dest

destination vector


open fun scale(source: Vector2f): Vector2f

Scales the vector by the UI_SCALING value. This modifies and returns the provided vector. If UI_SCALING is not modified (1), then no change is made to the source vector.

Return

provided vector scaled

Parameters

source

provided vector


open fun scale(source: Float): Float

Multiplies the float by the UI_SCALING value.

Return

scaled float

Parameters

source

value