C# Class DRHelperClasses.Maths.MathCoordinates

Static helper class for performing Mathematics on coordinates
Mostrar archivo Open project: Haedrian/Divine-Right

Public Methods

Method 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 method

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

GetManhattenDistanceOnXYPlane() public static method

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