C# 클래스 NScumm.Scumm.ScummMath

파일 보기 프로젝트 열기: scemino/nscumm 1 사용 예제들

공개 메소드들

메소드 설명
ClosestPtOnLine ( System.Point lineStart, System.Point lineEnd, System.Point p ) : System.Point
CompareSlope ( System.Point p1, System.Point p2, System.Point p3 ) : bool
FromSimpleDirection ( int dir ) : int

Convert a simple direction to an angle.

GetAngleFromPos ( int x, int y, bool useATAN ) : int
GetClosestPtOnBox ( BoxCoords box, System.Point pIn, System.Point &pOut ) : uint
GetDistance ( System.Point p1, System.Point p2 ) : int
NormalizeAngle ( int angle ) : int
ToSimpleDir ( bool dirType, int dir ) : int

메소드 상세

ClosestPtOnLine() 공개 정적인 메소드

public static ClosestPtOnLine ( System.Point lineStart, System.Point lineEnd, System.Point p ) : System.Point
lineStart System.Point
lineEnd System.Point
p System.Point
리턴 System.Point

CompareSlope() 공개 정적인 메소드

public static CompareSlope ( System.Point p1, System.Point p2, System.Point p3 ) : bool
p1 System.Point
p2 System.Point
p3 System.Point
리턴 bool

FromSimpleDirection() 공개 정적인 메소드

Convert a simple direction to an angle.
public static FromSimpleDirection ( int dir ) : int
dir int
리턴 int

GetAngleFromPos() 공개 정적인 메소드

public static GetAngleFromPos ( int x, int y, bool useATAN ) : int
x int
y int
useATAN bool
리턴 int

GetClosestPtOnBox() 공개 정적인 메소드

public static GetClosestPtOnBox ( BoxCoords box, System.Point pIn, System.Point &pOut ) : uint
box BoxCoords
pIn System.Point
pOut System.Point
리턴 uint

GetDistance() 공개 정적인 메소드

public static GetDistance ( System.Point p1, System.Point p2 ) : int
p1 System.Point
p2 System.Point
리턴 int

NormalizeAngle() 공개 정적인 메소드

public static NormalizeAngle ( int angle ) : int
angle int
리턴 int

ToSimpleDir() 공개 정적인 메소드

public static ToSimpleDir ( bool dirType, int dir ) : int
dirType bool
dir int
리턴 int