C# 클래스 Imager.Interface.OutOfBoundsUtils

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

공개 메소드들

메소드 설명
GetBoundsCheckedCoordinate ( int index, int count, OutOfBoundsHandler handler ) : int

Checks coordinates for over-/underflow and does the correction based on the given OutOfBoundsMode.

GetBoundsCheckedCoordinate ( int index, int count, OutOfBoundsMode mode ) : int

Checks coordinates for over-/underflow and does the correction based on the given OutOfBoundsMode.

GetHandlerOrCrash ( OutOfBoundsMode mode ) : OutOfBoundsHandler

Gets the out of bounds handler or crashes.

비공개 메소드들

메소드 설명
_ConstantExtension ( int index, int count, bool overflow, bool underflow ) : int
_HalfSampleSymmetric ( int index, int count, bool overflow, bool underflow ) : int
_WholeSampleSymmetric ( int index, int count, bool overflow, bool underflow ) : int
_WrapAround ( int index, int count, bool overflow, bool underflow ) : int

메소드 상세

GetBoundsCheckedCoordinate() 공개 정적인 메소드

Checks coordinates for over-/underflow and does the correction based on the given OutOfBoundsMode.
public static GetBoundsCheckedCoordinate ( int index, int count, OutOfBoundsHandler handler ) : int
index int The coordinate index.
count int The sample count.
handler OutOfBoundsHandler The handler.
리턴 int

GetBoundsCheckedCoordinate() 공개 정적인 메소드

Checks coordinates for over-/underflow and does the correction based on the given OutOfBoundsMode.
public static GetBoundsCheckedCoordinate ( int index, int count, OutOfBoundsMode mode ) : int
index int The coordinate index.
count int The sample count.
mode OutOfBoundsMode The mode.
리턴 int

GetHandlerOrCrash() 공개 정적인 메소드

Gets the out of bounds handler or crashes.
public static GetHandlerOrCrash ( OutOfBoundsMode mode ) : OutOfBoundsHandler
mode OutOfBoundsMode The mode.
리턴 OutOfBoundsHandler