C# Class BuildIt.AR.WorldHelpers

Afficher le fichier Open project: builttoroam/BuildIt

Méthodes publiques

Méthode Description
Bearing ( double lat1, double lon1, double lat2, double lon2 ) : double
Bearing ( this p1, Location p2 ) : double
DistanceInKilometres ( this p1, Location p2 ) : double
DistanceInMetres ( this p1, Location p2 ) : double
Offset ( System.Vector3 point, Rectangle bounds, Viewport viewport, System.Matrix projection, System.Matrix view, System.Matrix currentAttitude ) : ScreenOffset
ToBearing ( this radians ) : double
ToDegrees ( this radians ) : double
ToRad ( this degrees ) : double

Private Methods

Méthode Description
HaversineInKM ( double lat1, double long1, double lat2, double long2 ) : double
HaversineInM ( double lat1, double long1, double lat2, double long2 ) : int

Method Details

Bearing() public static méthode

public static Bearing ( double lat1, double lon1, double lat2, double lon2 ) : double
lat1 double
lon1 double
lat2 double
lon2 double
Résultat double

Bearing() public static méthode

public static Bearing ( this p1, Location p2 ) : double
p1 this
p2 Location
Résultat double

DistanceInKilometres() public static méthode

public static DistanceInKilometres ( this p1, Location p2 ) : double
p1 this
p2 Location
Résultat double

DistanceInMetres() public static méthode

public static DistanceInMetres ( this p1, Location p2 ) : double
p1 this
p2 Location
Résultat double

Offset() public static méthode

public static Offset ( System.Vector3 point, Rectangle bounds, Viewport viewport, System.Matrix projection, System.Matrix view, System.Matrix currentAttitude ) : ScreenOffset
point System.Vector3
bounds Rectangle
viewport Viewport
projection System.Matrix
view System.Matrix
currentAttitude System.Matrix
Résultat ScreenOffset

ToBearing() public static méthode

public static ToBearing ( this radians ) : double
radians this
Résultat double

ToDegrees() public static méthode

public static ToDegrees ( this radians ) : double
radians this
Résultat double

ToRad() public static méthode

public static ToRad ( this degrees ) : double
degrees this
Résultat double