Exemplo n.º 1
0
        public Matrix4(OgreMatrix4 m)
        {
            OgreVector4 v = m.GetRow(0);

            this.m00 = v.x;
            this.m01 = v.y;
            this.m02 = v.z;
            this.m03 = v.w;

            v        = m.GetRow(1);
            this.m10 = v.x;
            this.m11 = v.y;
            this.m12 = v.z;
            this.m13 = v.w;

            v        = m.GetRow(2);
            this.m20 = v.x;
            this.m21 = v.y;
            this.m22 = v.z;
            this.m23 = v.w;

            v        = m.GetRow(3);
            this.m30 = v.x;
            this.m31 = v.y;
            this.m32 = v.z;
            this.m33 = v.w;
        }
Exemplo n.º 2
0
 public Vector4(OgreVector4 v)
 {
     this.x = v.x;
     this.y = v.y;
     this.z = v.z;
     this.w = v.w;
 }