C# 클래스 DRHelperClasses.Maths.MathCoordinates

Static helper class for performing Mathematics on coordinates
파일 보기 프로젝트 열기: Haedrian/Divine-Right

공개 메소드들

메소드 설명
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

메소드 상세

GetCartisianDisplacementOnXYPlane() 공개 정적인 메소드

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

GetManhattenDistanceOnXYPlane() 공개 정적인 메소드

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