Text::ParseVec2 Function

Parses a vec2 from a string.

Syntax

vec2 Text::ParseVec2(
const string&in str
)

Parameters

const string&in str
The string to parse in a form of x y. Floats are serialized with a dot as a decimal separator.

Return value

vec2
If parsing failed, the returned vector will have all components set to 0.

Remarks

None.