public static void Cot(double degrees, double expectedResult) { double radians = Angle.DegreesToRadians(degrees); Assert.AreEqual(expectedResult, TrigonometryLibrary.Cot(radians), Tolerance); }
/// <summary> /// Slope of the curve in local coordinates about the local origin that corresponds to the parametric coordinate given. /// </summary> /// <param name="angleRadians">Parametric coordinate in radians.</param> /// <returns></returns> public override double SlopeByAngle(double angleRadians) { return(-1 * (DistanceFromVertexMinorToMajorAxis / DistanceFromVertexMajorToLocalOrigin) * TrigonometryLibrary.Cot(angleRadians)); }