GLSharp.Universe.Node.Rotate C# (CSharp) Method

Rotate() public method

public Rotate ( float angle, Vector3 axis ) : void
angle float
axis Vector3
return void
        public void Rotate(float angle, Vector3 axis)
        {
            this.LocalRotation.Add(axis.Clone().Scale(angle));
            this._localRotationMatrix.Rotate(angle, axis);

            this.InvalidateWorldTransformation();

            this.TransformChanged.Fire(this, null);
        }