# CalculationHelper Class Static class providing helper methods for various calculations. ## Definition **Namespace:** CapyKit.Helpers **Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0 **C#** ``` C# public static class CalculationHelper ``` **F#** ``` F# [] [] type CalculationHelper = class end ```
InheritanceObject → CalculationHelper
## Methods
CalculateHash Calculates the hash of a given string using an MD5 value as the first 32 bits.
CalculateHexHash Calculates the hexadecimal hash.
DegreesToRadians Convers degrees to radians.
GetDistance(Decimal, Decimal, Decimal, Decimal, MeasurementSystem) Gets the distance between two points on earth using the haversine formula.
GetDistance(Double, Double, Double, Double, MeasurementSystem) Gets the distance between two points on earth using the haversine formula.
KilometersToMiles Converts kilometers to miles.
MilesToKilometers Converts miles to kilometers.
RadiansToDegrees Converts radians to degrees.
## Fields
chars The valid hexidecimal characters.
EARTH_RADIUS_KILOMETERS The earth's radius in kilometers.
MILES_PER_KILOMETER Ratio of miles per kilometer .
## See Also #### Reference CapyKit.Helpers Namespace