toSizeVector2

Load a two dimensional vector from a string.

The string should either be a single float value, like 1.5, or two, separated by an x character: 1.5 x 1.2. If there is only one value, it will be used for both axes.

@safe
toSizeVector2
(
string source
)

Parameters

source string

String to parse. Params: String to load from.

Meta