C# Class Smrf.AppLib.MathUtil

Utility methods for working with numbers.
All methods are static.
ファイルを表示 Open project: 2014-sed-team3/term-project

Public Methods

Method Description
CountDecimalPlaces ( Decimal theDecimal ) : Int32
DegreesToRadians ( Double degrees ) : Double
GetDecimalFraction ( Decimal theDecimal ) : Decimal
ParseCultureInvariantDouble ( String s ) : Double
ParseCultureInvariantInt32 ( String s ) : Int32
ParseCultureInvariantSingle ( String s ) : System.Single
RadiansToDegrees ( Double radians ) : Double
TransformValueToRange ( System.Single valueRangeA, System.Single minimumValueRangeA, System.Single maximumValueRangeA, System.Single minimumValueRangeB, System.Single maximumValueRangeB ) : System.Single
TryParseCultureInvariantDouble ( String s, Double &result ) : System.Boolean
TryParseCultureInvariantInt32 ( String s, Int32 &result ) : System.Boolean
TryParseCultureInvariantSingle ( String s, System.Single &result ) : System.Boolean
TryParseCultureInvariantUInt32 ( String s, UInt32 &result ) : System.Boolean

Method Details

CountDecimalPlaces() public static method

public static CountDecimalPlaces ( Decimal theDecimal ) : Int32
theDecimal Decimal
return System.Int32

DegreesToRadians() public static method

public static DegreesToRadians ( Double degrees ) : Double
degrees Double
return Double

GetDecimalFraction() public static method

public static GetDecimalFraction ( Decimal theDecimal ) : Decimal
theDecimal Decimal
return Decimal

ParseCultureInvariantDouble() public static method

public static ParseCultureInvariantDouble ( String s ) : Double
s String
return Double

ParseCultureInvariantInt32() public static method

public static ParseCultureInvariantInt32 ( String s ) : Int32
s String
return System.Int32

ParseCultureInvariantSingle() public static method

public static ParseCultureInvariantSingle ( String s ) : System.Single
s String
return System.Single

RadiansToDegrees() public static method

public static RadiansToDegrees ( Double radians ) : Double
radians Double
return Double

TransformValueToRange() public static method

public static TransformValueToRange ( System.Single valueRangeA, System.Single minimumValueRangeA, System.Single maximumValueRangeA, System.Single minimumValueRangeB, System.Single maximumValueRangeB ) : System.Single
valueRangeA System.Single
minimumValueRangeA System.Single
maximumValueRangeA System.Single
minimumValueRangeB System.Single
maximumValueRangeB System.Single
return System.Single

TryParseCultureInvariantDouble() public static method

public static TryParseCultureInvariantDouble ( String s, Double &result ) : System.Boolean
s String
result Double
return System.Boolean

TryParseCultureInvariantInt32() public static method

public static TryParseCultureInvariantInt32 ( String s, Int32 &result ) : System.Boolean
s String
result System.Int32
return System.Boolean

TryParseCultureInvariantSingle() public static method

public static TryParseCultureInvariantSingle ( String s, System.Single &result ) : System.Boolean
s String
result System.Single
return System.Boolean

TryParseCultureInvariantUInt32() public static method

public static TryParseCultureInvariantUInt32 ( String s, UInt32 &result ) : System.Boolean
s String
result System.UInt32
return System.Boolean