Practical Astronomy Algorithms in .NET/C#
Loading...
Searching...
No Matches
MathExtensions Class Reference

Extension methods for mathematical calculations. More...

Static Public Member Functions

static double ACosine (this double d)
 Returns the angle whose cosine is the specified number.
 
static double AngleTangent (this double d)
 Returns the angle whose tangent is the specified number.
 
static double AngleTangent2 (this double y, double x)
 Returns the angle whose tangent is the quotient of two specified numbers.
 
static double ASine (this double d)
 Returns the angle whose sine is the specified number.
 
static double Cosine (this double d)
 Returns the cosine of the specified angle.
 
static double Floor (this double d)
 Returns the largest integral value less than or equal to the specified double-precision floating-point number.
 
static double Log10 (this double d)
 Returns the base 10 logarithm of a specified number.
 
static double Sine (this double a)
 Returns the sine of the specified angle.
 
static double SquareRoot (this double d)
 Returns the square root of a specified number.
 
static double Tangent (this double a)
 Returns the tangent of the specified angle. ///.
 
static double ToDegrees (this double radians)
 Convert radians to degrees.
 
static double ToRadians (this double degrees)
 Convert degrees to radians.
 

Detailed Description

Extension methods for mathematical calculations.

Definition at line 8 of file MathExtensions.cs.

Member Function Documentation

◆ ACosine()

static double ACosine ( this double  d)
static

Returns the angle whose cosine is the specified number.

Parameters
d
Returns

Definition at line 15 of file MathExtensions.cs.

◆ AngleTangent()

static double AngleTangent ( this double  d)
static

Returns the angle whose tangent is the specified number.

Parameters
d
Returns

Definition at line 25 of file MathExtensions.cs.

◆ AngleTangent2()

static double AngleTangent2 ( this double  y,
double  x 
)
static

Returns the angle whose tangent is the quotient of two specified numbers.

Parameters
y
x
Returns

Definition at line 36 of file MathExtensions.cs.

◆ ASine()

static double ASine ( this double  d)
static

Returns the angle whose sine is the specified number.

Parameters
d
Returns

Definition at line 46 of file MathExtensions.cs.

◆ Cosine()

static double Cosine ( this double  d)
static

Returns the cosine of the specified angle.

Definition at line 54 of file MathExtensions.cs.

◆ Floor()

static double Floor ( this double  d)
static

Returns the largest integral value less than or equal to the specified double-precision floating-point number.

Parameters
d
Returns

Definition at line 64 of file MathExtensions.cs.

◆ Log10()

static double Log10 ( this double  d)
static

Returns the base 10 logarithm of a specified number.

Parameters
d
Returns

Definition at line 74 of file MathExtensions.cs.

◆ Sine()

static double Sine ( this double  a)
static

Returns the sine of the specified angle.

Definition at line 83 of file MathExtensions.cs.

◆ SquareRoot()

static double SquareRoot ( this double  d)
static

Returns the square root of a specified number.

Parameters
d
Returns

Definition at line 93 of file MathExtensions.cs.

◆ Tangent()

static double Tangent ( this double  a)
static

Returns the tangent of the specified angle. ///.

Parameters
a
Returns

Definition at line 103 of file MathExtensions.cs.

◆ ToDegrees()

static double ToDegrees ( this double  radians)
static

Convert radians to degrees.

Parameters
radians
Returns

Definition at line 113 of file MathExtensions.cs.

◆ ToRadians()

static double ToRadians ( this double  degrees)
static

Convert degrees to radians.

Parameters
degrees
Returns

Definition at line 123 of file MathExtensions.cs.


The documentation for this class was generated from the following file: