MathExtensions Class

Extension functions for math types

Definition

Namespace: MobileTrack.Common.Extensions
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
public static class MathExtensions
Inheritance
Object    MathExtensions

Methods

CalculateErrorInMeters Calculates the error (in meters) of a GPS location based on the signal strength, satellite count and HDOP.
Distance Calculates the distance between two GeoLocation objects using the Haversine formula in meters.
LunhAlgorithm The Lunh algorithm is used a simple check digit formula to validate a variety of identification numbers. We use it for ImeiNumbers and SimCardNumbers.
ToRadians(Double) Converts a value from degrees to radians
ToRadians(Int32) Converts a value from degrees to radians

See Also