src/Elements/Geometry/Transform.cs
/// <summary>
/// Apply a rotation to the transform.
/// </summary>
/// <param name="axis">The axis of rotation.</param>
/// <param name="angle">The angle of rotation in degrees.</param>
Apply a rotation to the transform.
Apply a rotation to the transform .
public void Rotate(Vector3 axis, double angle)
        {
            var m = new Matrix();
            m.SetupRotate(axis, angle * (Math.PI / 180.0));
            this.Matrix = this.Matrix * m;
        }
public void Rotate ( Vector3 axis , double angle ) { var m = new Matrix ( ) ; m . SetupRotate ( axis , angle * ( Math . PI / 180.0 ) ) ; this . Matrix = this . Matrix * m ; }
Apply a rotation to the transform.
Apply a rotation to the transform .
axis
Vector3
The axis of rotation.
The axis of rotation .
angle
double
The angle of rotation in degrees.
The angle of rotation in degrees .