C# Класс Apachai.Effects.Core.Utility

Показать файл Открыть проект

Открытые методы

Метод Описание
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