/// <summary> /// Rotates the vector about the X axis as though the tail of the vector were at the origin /// </summary> /// <param name="degrees">The angle in degrees to rotate counter-clockwise when looking at the origin from the positive axis.</param> /// <returns>A new Vector that has been rotated</returns> public virtual Vector RotateX(double degrees) { IMatrixD m = ToMatrix(); IMatrixD res = m.Multiply(Matrix4.RotationX(degrees)); return(new Vector(res)); }