SpiecsEngine
 
Loading...
Searching...
No Matches

◆ decode()

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

Definition at line 81 of file YamlUtils.h.

82 {
83 if (!node.IsSequence() || node.size() != 4)
84 {
85 return false;
86 }
87
88 rhs.x = node[0].as<float>();
89 rhs.y = node[1].as<float>();
90 rhs.z = node[2].as<float>();
91 rhs.w = node[3].as<float>();
92
93 return true;
94 }