IrrlichtNETCP.Quaternion.makeInverse C# (CSharp) Method

makeInverse() public method

public makeInverse ( ) : void
return void
        public void makeInverse()
        {
            m_x = -m_x;
            m_y = -m_y;
            m_z = -m_z;
        }

Usage Example

Example #1
0
        public override void Startup()
        {
            //Create a New Irrlicht Device
            //device.Timer.Stop();
            Device.Timer.Speed   = 1;
            Device.WindowCaption = "IdealistViewer 0.001";
            //   viewerRenderPlane.Device = Device;
            //  viewerRenderPlane.Renderer = this;
            // Device.Resizeable = true;

            // Sets directory to load assets from
            Device.FileSystem.WorkingDirectory = m_viewer.StartupDirectory + "/" + Util.MakePath("media", "materials", "textures", "");  //We set Irrlicht's current directory to %application directory%/media


            Driver       = Device.VideoDriver;
            SceneManager = Device.SceneManager;

            GuiEnvironment = Device.GUIEnvironment;

            // Compose Coordinate space converter quaternion
            IrrlichtNETCP.Matrix4 m4 = new IrrlichtNETCP.Matrix4();
            m4.SetM(0, 0, 1);
            m4.SetM(1, 0, 0);
            m4.SetM(2, 0, 0);
            m4.SetM(3, 0, 0);
            m4.SetM(0, 1, 0);
            m4.SetM(1, 1, 0);
            m4.SetM(2, 1, 1);
            m4.SetM(3, 1, 0);
            m4.SetM(0, 2, 0);
            m4.SetM(1, 2, 1);
            m4.SetM(2, 2, 0);
            m4.SetM(3, 2, 0);
            m4.SetM(0, 3, 0);
            m4.SetM(1, 3, 0);
            m4.SetM(2, 3, 0);
            m4.SetM(3, 3, 1);


            CoordinateConversion_XYZ_XZY = new IrrlichtNETCP.Quaternion(m4);
            CoordinateConversion_XYZ_XZY.makeInverse();
        }
All Usage Examples Of IrrlichtNETCP.Quaternion::makeInverse