SpiecsEngine
 
Loading...
Searching...
No Matches

◆ decode()

static bool YAML::convert< glm::vec2 >::decode ( const Node & node,
glm::vec2 & rhs )
inlinestatic

Definition at line 27 of file YamlUtils.h.

28 {
29 if (!node.IsSequence() || node.size() != 2)
30 {
31 return false;
32 }
33
34 rhs.x = node[0].as<float>();
35 rhs.y = node[1].as<float>();
36
37 return true;
38 }