C# Class JonasSchubert.Snippets.Math.Math

Partial class for math snippets
显示文件 Open project: JonasSchubert/30-seconds-of-c-sharp

Public Methods

Method Description
DegToRad ( decimal degree ) : double

Converts an angle from degrees to radians.

DegToRad ( double degree ) : double

Converts an angle from degrees to radians.

DegToRad ( float degree ) : double

Converts an angle from degrees to radians.

DegToRad ( int degree ) : double

Converts an angle from degrees to radians.

DegToRad ( uint degree ) : double

Converts an angle from degrees to radians.

IsOdd ( decimal value ) : bool

Returns true if the decimal is odd, false otherwise

IsOdd ( double value ) : bool

Returns true if the double is odd, false otherwise

IsOdd ( float value ) : bool

Returns true if the float is odd, false otherwise

IsOdd ( int value ) : bool

Returns true if the int is odd, false otherwise

IsOdd ( uint value ) : bool

Returns true if the uint is odd, false otherwise

RadToDeg ( decimal radians ) : double

Converts an angle from radians to degrees.

RadToDeg ( double radians ) : double

Converts an angle from radians to degrees.

RadToDeg ( float radians ) : double

Converts an angle from radians to degrees.

RadToDeg ( int radians ) : double

Converts an angle from radians to degrees.

RadToDeg ( uint radians ) : double

Converts an angle from radians to degrees.

Method Details

DegToRad() public static method

Converts an angle from degrees to radians.
public static DegToRad ( decimal degree ) : double
degree decimal
return double

DegToRad() public static method

Converts an angle from degrees to radians.
public static DegToRad ( double degree ) : double
degree double
return double

DegToRad() public static method

Converts an angle from degrees to radians.
public static DegToRad ( float degree ) : double
degree float
return double

DegToRad() public static method

Converts an angle from degrees to radians.
public static DegToRad ( int degree ) : double
degree int
return double

DegToRad() public static method

Converts an angle from degrees to radians.
public static DegToRad ( uint degree ) : double
degree uint
return double

IsOdd() public static method

Returns true if the decimal is odd, false otherwise
public static IsOdd ( decimal value ) : bool
value decimal
return bool

IsOdd() public static method

Returns true if the double is odd, false otherwise
public static IsOdd ( double value ) : bool
value double
return bool

IsOdd() public static method

Returns true if the float is odd, false otherwise
public static IsOdd ( float value ) : bool
value float
return bool

IsOdd() public static method

Returns true if the int is odd, false otherwise
public static IsOdd ( int value ) : bool
value int
return bool

IsOdd() public static method

Returns true if the uint is odd, false otherwise
public static IsOdd ( uint value ) : bool
value uint
return bool

RadToDeg() public static method

Converts an angle from radians to degrees.
public static RadToDeg ( decimal radians ) : double
radians decimal
return double

RadToDeg() public static method

Converts an angle from radians to degrees.
public static RadToDeg ( double radians ) : double
radians double
return double

RadToDeg() public static method

Converts an angle from radians to degrees.
public static RadToDeg ( float radians ) : double
radians float
return double

RadToDeg() public static method

Converts an angle from radians to degrees.
public static RadToDeg ( int radians ) : double
radians int
return double

RadToDeg() public static method

Converts an angle from radians to degrees.
public static RadToDeg ( uint radians ) : double
radians uint
return double