C# 클래스 Apachai.Effects.Core.Utility

파일 보기 프로젝트 열기: garuma/apachai

공개 메소드들

메소드 설명
Clamp ( double x, double min, double max ) : double
Clamp ( float x, float min, float max ) : float
Clamp ( int x, int min, int max ) : int
ClampToByte ( double x ) : byte
ClampToByte ( float x ) : byte
ClampToByte ( int x ) : byte
ColorDifference ( PixelData a, PixelData b ) : int
ColorDifferenceSquared ( PixelData a, PixelData b ) : int
FastDivideShortByByte ( ushort n, byte d ) : int
FastScaleByteByByte ( byte a, byte b ) : byte
GetLinePoints ( Point first, Point second ) : Point[]
GetRegionBounds ( Rectangle rects, int startIndex, int length ) : Rectangle

Allows you to find the bounding box for a "region" that is described as an array of bounding boxes.

GetStaticName ( Type type ) : string
InflateRectangles ( Rectangle rects, int len ) : System.Drawing.Rectangle[]
Lerp ( double from, double to, double frac ) : double
Lerp ( float from, float to, float frac ) : float
RectanglesToRegion ( Rectangle rects ) : Region
Swap ( int &a, int &b ) : void

비공개 메소드들

메소드 설명
IsNumber ( float x ) : bool

메소드 상세

Clamp() 공개 정적인 메소드

public static Clamp ( double x, double min, double max ) : double
x double
min double
max double
리턴 double

Clamp() 공개 정적인 메소드

public static Clamp ( float x, float min, float max ) : float
x float
min float
max float
리턴 float

Clamp() 공개 정적인 메소드

public static Clamp ( int x, int min, int max ) : int
x int
min int
max int
리턴 int

ClampToByte() 공개 정적인 메소드

public static ClampToByte ( double x ) : byte
x double
리턴 byte

ClampToByte() 공개 정적인 메소드

public static ClampToByte ( float x ) : byte
x float
리턴 byte

ClampToByte() 공개 정적인 메소드

public static ClampToByte ( int x ) : byte
x int
리턴 byte

ColorDifference() 공개 정적인 메소드

public static ColorDifference ( PixelData a, PixelData b ) : int
a System.Drawing.PixelData
b System.Drawing.PixelData
리턴 int

ColorDifferenceSquared() 공개 정적인 메소드

public static ColorDifferenceSquared ( PixelData a, PixelData b ) : int
a System.Drawing.PixelData
b System.Drawing.PixelData
리턴 int

FastDivideShortByByte() 공개 정적인 메소드

public static FastDivideShortByByte ( ushort n, byte d ) : int
n ushort
d byte
리턴 int

FastScaleByteByByte() 공개 정적인 메소드

public static FastScaleByteByByte ( byte a, byte b ) : byte
a byte
b byte
리턴 byte

GetLinePoints() 공개 정적인 메소드

public static GetLinePoints ( Point first, Point second ) : Point[]
first Point
second Point
리턴 Point[]

GetRegionBounds() 공개 정적인 메소드

Allows you to find the bounding box for a "region" that is described as an array of bounding boxes.
public static GetRegionBounds ( Rectangle rects, int startIndex, int length ) : Rectangle
rects System.Drawing.Rectangle
startIndex int
length int
리턴 System.Drawing.Rectangle

GetStaticName() 공개 정적인 메소드

public static GetStaticName ( Type type ) : string
type System.Type
리턴 string

InflateRectangles() 공개 정적인 메소드

public static InflateRectangles ( Rectangle rects, int len ) : System.Drawing.Rectangle[]
rects System.Drawing.Rectangle
len int
리턴 System.Drawing.Rectangle[]

Lerp() 공개 정적인 메소드

public static Lerp ( double from, double to, double frac ) : double
from double
to double
frac double
리턴 double

Lerp() 공개 정적인 메소드

public static Lerp ( float from, float to, float frac ) : float
from float
to float
frac float
리턴 float

RectanglesToRegion() 공개 정적인 메소드

public static RectanglesToRegion ( Rectangle rects ) : Region
rects System.Drawing.Rectangle
리턴 System.Drawing.Region

Swap() 공개 정적인 메소드

public static Swap ( int &a, int &b ) : void
a int
b int
리턴 void