Text::ParseVec3 Function

Parses a vec3 from a string.

Syntax

vec3 Text::ParseVec3(
const string&in str
)

Parameters

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

Return value

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

Remarks

None.