C# Class DRHelperClasses.Maths.MathCoordinates

Static helper class for performing Mathematics on coordinates
Afficher le fichier Open project: Haedrian/Divine-Right

Méthodes publiques

Méthode Description
GetCartisianDisplacementOnXYPlane ( MapCoordinate c1, MapCoordinate c2 ) : double

Calculates the Cartisian Displacement between two coordinates on the XY plane

GetManhattenDistanceOnXYPlane ( MapCoordinate c1, MapCoordinate c2 ) : int

Calculates the Manhatten distance on the XY plane between two coordinates

Method Details

GetCartisianDisplacementOnXYPlane() public static méthode

Calculates the Cartisian Displacement between two coordinates on the XY plane
public static GetCartisianDisplacementOnXYPlane ( MapCoordinate c1, MapCoordinate c2 ) : double
c1 MapCoordinate
c2 MapCoordinate
Résultat double

GetManhattenDistanceOnXYPlane() public static méthode

Calculates the Manhatten distance on the XY plane between two coordinates
public static GetManhattenDistanceOnXYPlane ( MapCoordinate c1, MapCoordinate c2 ) : int
c1 MapCoordinate
c2 MapCoordinate
Résultat int