Exemplo n.º 1
0
        public static void Sin(double degrees, double expectedResult)
        {
            double radians = Angle.DegreesToRadians(degrees);

            Assert.AreEqual(expectedResult, TrigonometryLibrary.Sin(radians), Tolerance);
        }
 /// <summary>
 /// Y-coordinate on 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 YbyRotationAboutOrigin(double angleRadians)
 {
     return(DistanceFromVertexMinorToMajorAxis * TrigonometryLibrary.Sin(angleRadians));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Primes the by angle.
 /// </summary>
 /// <param name="angleRadians">The angle radians.</param>
 /// <returns>System.Double.</returns>
 public override double PrimeByParameter(double angleRadians)
 {
     return(-1 * _parent.DistanceFromVertexMajorToLocalOrigin * TrigonometryLibrary.Sin(angleRadians));
 }
 /// <summary>
 /// Primes the double by angle.
 /// </summary>
 /// <param name="angleRadians">The angle radians.</param>
 /// <returns>System.Double.</returns>
 public override double PrimeDoubleByParameter(double angleRadians)
 {
     return(-1 * _parent.RadiusAboutFocusRight((Coordinates.Angle)angleRadians) * TrigonometryLibrary.Sin(angleRadians));
 }
Exemplo n.º 5
0
 /// <summary>
 /// Primes the double by angle.
 /// </summary>
 /// <param name="angleRadians">The angle radians.</param>
 /// <returns>System.Double.</returns>
 public override double PrimeDoubleByParameter(double angleRadians)
 {
     return(-1 * _parent.DistanceFromVertexMinorToMajorAxis * TrigonometryLibrary.Sin(angleRadians));
 }