Muto 0.0.1
Cross-Platform Application Template
GitHub Repo | Muto Updates | Muto's Author
Loading...
Searching...
No Matches
YAML::convert< glm::vec3 > Struct Reference

Static Public Member Functions

static bool decode (const Node &node, glm::vec3 &rhs)
 
static bool decode (const Node &node, glm::vec3 &rhs)
 
static Node encode (const glm::vec3 &rhs)
 
static Node encode (const glm::vec3 &rhs)
 

Member Function Documentation

◆ decode() [1/2]

static bool YAML::convert< glm::vec3 >::decode ( const Node &  node,
glm::vec3 &  rhs 
)
inlinestatic
51 {
52 if (!node.IsSequence() || node.size() != 3)
53 return false;
54
55 rhs.x = node[0].as<float>();
56 rhs.y = node[1].as<float>();
57 rhs.z = node[2].as<float>();
58 return true;
59 }

◆ decode() [2/2]

static bool YAML::convert< glm::vec3 >::decode ( const Node &  node,
glm::vec3 &  rhs 
)
inlinestatic
51 {
52 if (!node.IsSequence() || node.size() != 3)
53 return false;
54
55 rhs.x = node[0].as<float>();
56 rhs.y = node[1].as<float>();
57 rhs.z = node[2].as<float>();
58 return true;
59 }

◆ encode() [1/2]

static Node YAML::convert< glm::vec3 >::encode ( const glm::vec3 &  rhs)
inlinestatic
41 {
42 Node node;
43 node.push_back(rhs.x);
44 node.push_back(rhs.y);
45 node.push_back(rhs.z);
46 node.SetStyle(EmitterStyle::Flow);
47 return node;
48 }

◆ encode() [2/2]

static Node YAML::convert< glm::vec3 >::encode ( const glm::vec3 &  rhs)
inlinestatic
41 {
42 Node node;
43 node.push_back(rhs.x);
44 node.push_back(rhs.y);
45 node.push_back(rhs.z);
46 node.SetStyle(EmitterStyle::Flow);
47 return node;
48 }

The documentation for this struct was generated from the following file: