mirror of
https://github.com/wagesj45/CapyKit.git
synced 2024-11-14 04:03:36 -06:00
2.7 KiB
2.7 KiB
CalculationHelper Class
Static class providing helper methods for various calculations.
Definition
Namespace: CapyKit.Helpers
Assembly: CapyKit (in CapyKit.dll) Version: 1.0.2
C#
public static class CalculationHelper
F#
[<AbstractClassAttribute>]
[<SealedAttribute>]
type CalculationHelper = class end
Inheritance | Object → 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 . |