Flint Engine / Guide / API Reference

toml_to_vec3

Function toml_to_vec3 

Source
pub fn toml_to_vec3(v: &Value) -> Option<Vec3>
Expand description

Extract a Vec3 from a TOML value that is either an array [x, y, z] or a table { x = .., y = .., z = .. }.