Get Quat Elem - CSharp System.Xml

CSharp examples for System.Xml:XML Attribute

Description

Get Quat Elem

Demo Code


using System.Xml.Linq;
using System;/*w  w w.j a v a  2  s .c  o m*/

public class Main{
        public static Quaternion GetQuatElem(this XElement elem, string name)
        {
            var v = new Quaternion();
            GetVector4(elem.Element(name), v);
            return v;
        }
}

Related Tutorials