MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / xnXmlReadVecotr3D

Function xnXmlReadVecotr3D

Source/OpenNI/XnXmlScriptNode.cpp:88–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88XnStatus xnXmlReadVecotr3D(const TiXmlElement* pOpcode, XnVector3D* pVector)
89{
90 XnStatus nRetVal = XN_STATUS_OK;
91
92 XnDouble dValue;
93 nRetVal = xnXmlReadRealAttribute(pOpcode, "x", &dValue);
94 XN_IS_STATUS_OK(nRetVal);
95 pVector->X = (XnFloat)dValue;
96
97 nRetVal = xnXmlReadRealAttribute(pOpcode, "y", &dValue);
98 XN_IS_STATUS_OK(nRetVal);
99 pVector->Y = (XnFloat)dValue;
100
101 nRetVal = xnXmlReadRealAttribute(pOpcode, "z", &dValue);
102 XN_IS_STATUS_OK(nRetVal);
103 pVector->Z = (XnFloat)dValue;
104
105 return (XN_STATUS_OK);
106}
107
108XnStatus xnXmlReadBoundingBox3D(const TiXmlElement* pElem, XnBoundingBox3D* pBox)
109{

Callers 1

xnXmlReadBoundingBox3DFunction · 0.85

Calls 1

xnXmlReadRealAttributeFunction · 0.85

Tested by

no test coverage detected