C# Класс Den.Tools.MatrixLine

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
arr float[]
length int
offset int

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

Метод Описание
Add ( float f ) : void
AppendLine ( FloatMatrix matrix, int z ) : void
AppendLine ( FloatMatrix matrix, int z, MatrixLine mask ) : void
AppendRow ( FloatMatrix matrix, int x ) : void
AppendRow ( FloatMatrix matrix, int x, MatrixLine mask ) : void
Average ( bool skipNegative = false ) : float
AverageSample ( int x ) : float
Cavity ( float intensity = 1 ) : void
CubicSample ( float x ) : float
Delta ( ) : void
DownsampleBlur ( int downsample, float blur, MatrixLine tmpDownsized, MatrixLine tmpBlur ) : void
DownsampleFast ( MatrixLine src, MatrixLine dst, int ratio ) : void
Fill ( float f ) : void
FillGaps ( int start, int end ) : void
FillGapsOld ( int start, int end, MatrixLine tmpFront = null, MatrixLine tmpBack = null, MatrixLine tmpFrontDist = null, MatrixLine tmpBackDist = null ) : void
GaussianBlur ( Array tmp, float blur ) : void
Gradient ( float startVal, float endVal ) : void
Invert ( ) : void
LinearSample ( float x, float radius ) : float
MatrixLine ( Array arr, int offset, int length ) : UnityEngine
MatrixLine ( int offset, int length ) : UnityEngine
Max ( MatrixLine l ) : void
Normal ( float height ) : void
PredictExtend ( int start ) : void
ReadCircular ( FloatMatrix matrix, Coord center, float radius ) : void
ReadInclined ( FloatMatrix matrix, Vector2 start, Vector2 step ) : void
ReadLine ( FloatMatrix matrix, int z ) : void
ReadRow ( FloatMatrix matrix, int x ) : void
ReadSquare ( FloatMatrix matrix, Coord center, int radius ) : void
ResampleCubic ( MatrixLine src, MatrixLine dst ) : void
ResampleLinear ( MatrixLine src, MatrixLine dst ) : void
Spread ( float subtract = 0.01f, float multiply = 1f ) : void
SpreadBlur ( MatrixLine &curr, MatrixLine &prev, int blur ) : void
SpreadMultiply ( float multiply = 1f ) : void
WriteCircular ( FloatMatrix matrix, Coord center, float radius ) : void
WriteInclined ( FloatMatrix matrix, Vector2 start, Vector2 step ) : void
WriteLine ( FloatMatrix matrix, int z ) : void
WriteLine ( FloatMatrix matrix, int z, MatrixLine mask ) : void
WriteRow ( FloatMatrix matrix, int x ) : void
WriteRow ( FloatMatrix matrix, int x, MatrixLine mask ) : void
WriteSquare ( FloatMatrix matrix, Coord center, int radius ) : void

Приватные методы

Метод Описание
ReadArcX ( FloatMatrix matrix, Coord center, float radius, int &counter, int flipX = 1, int flipZ = 1, bool reverse = false ) : void
ReadArcZ ( FloatMatrix matrix, Coord center, float radius, int &counter, int flipX = 1, int flipZ = 1, bool reverse = false ) : void
WriteArcX ( FloatMatrix matrix, Coord center, float radius, int &counter, int flipX = 1, int flipZ = 1, bool reverse = false ) : void
WriteArcZ ( FloatMatrix matrix, Coord center, float radius, int &counter, int flipX = 1, int flipZ = 1, bool reverse = false ) : void

Описание методов

Add() публичный Метод

public Add ( float f ) : void
f float
Результат void

AppendLine() публичный Метод

public AppendLine ( FloatMatrix matrix, int z ) : void
matrix FloatMatrix
z int
Результат void

AppendLine() публичный Метод

public AppendLine ( FloatMatrix matrix, int z, MatrixLine mask ) : void
matrix FloatMatrix
z int
mask MatrixLine
Результат void

AppendRow() публичный Метод

public AppendRow ( FloatMatrix matrix, int x ) : void
matrix FloatMatrix
x int
Результат void

AppendRow() публичный Метод

public AppendRow ( FloatMatrix matrix, int x, MatrixLine mask ) : void
matrix FloatMatrix
x int
mask MatrixLine
Результат void

Average() публичный Метод

public Average ( bool skipNegative = false ) : float
skipNegative bool
Результат float

AverageSample() публичный Метод

public AverageSample ( int x ) : float
x int
Результат float

Cavity() публичный Метод

public Cavity ( float intensity = 1 ) : void
intensity float
Результат void

CubicSample() публичный Метод

public CubicSample ( float x ) : float
x float
Результат float

Delta() публичный Метод

public Delta ( ) : void
Результат void

DownsampleBlur() публичный Метод

public DownsampleBlur ( int downsample, float blur, MatrixLine tmpDownsized, MatrixLine tmpBlur ) : void
downsample int
blur float
tmpDownsized MatrixLine
tmpBlur MatrixLine
Результат void

DownsampleFast() публичный статический Метод

public static DownsampleFast ( MatrixLine src, MatrixLine dst, int ratio ) : void
src MatrixLine
dst MatrixLine
ratio int
Результат void

Fill() публичный Метод

public Fill ( float f ) : void
f float
Результат void

FillGaps() публичный Метод

public FillGaps ( int start, int end ) : void
start int
end int
Результат void

FillGapsOld() публичный Метод

public FillGapsOld ( int start, int end, MatrixLine tmpFront = null, MatrixLine tmpBack = null, MatrixLine tmpFrontDist = null, MatrixLine tmpBackDist = null ) : void
start int
end int
tmpFront MatrixLine
tmpBack MatrixLine
tmpFrontDist MatrixLine
tmpBackDist MatrixLine
Результат void

GaussianBlur() публичный Метод

public GaussianBlur ( Array tmp, float blur ) : void
tmp Array
blur float
Результат void

Gradient() публичный Метод

public Gradient ( float startVal, float endVal ) : void
startVal float
endVal float
Результат void

Invert() публичный Метод

public Invert ( ) : void
Результат void

LinearSample() публичный Метод

public LinearSample ( float x, float radius ) : float
x float
radius float
Результат float

MatrixLine() публичный Метод

public MatrixLine ( Array arr, int offset, int length ) : UnityEngine
arr Array
offset int
length int
Результат UnityEngine

MatrixLine() публичный Метод

public MatrixLine ( int offset, int length ) : UnityEngine
offset int
length int
Результат UnityEngine

Max() публичный Метод

public Max ( MatrixLine l ) : void
l MatrixLine
Результат void

Normal() публичный Метод

public Normal ( float height ) : void
height float
Результат void

PredictExtend() публичный Метод

public PredictExtend ( int start ) : void
start int
Результат void

ReadCircular() публичный Метод

public ReadCircular ( FloatMatrix matrix, Coord center, float radius ) : void
matrix FloatMatrix
center Coord
radius float
Результат void

ReadInclined() публичный Метод

public ReadInclined ( FloatMatrix matrix, Vector2 start, Vector2 step ) : void
matrix FloatMatrix
start Vector2
step Vector2
Результат void

ReadLine() публичный Метод

public ReadLine ( FloatMatrix matrix, int z ) : void
matrix FloatMatrix
z int
Результат void

ReadRow() публичный Метод

public ReadRow ( FloatMatrix matrix, int x ) : void
matrix FloatMatrix
x int
Результат void

ReadSquare() публичный Метод

public ReadSquare ( FloatMatrix matrix, Coord center, int radius ) : void
matrix FloatMatrix
center Coord
radius int
Результат void

ResampleCubic() публичный статический Метод

public static ResampleCubic ( MatrixLine src, MatrixLine dst ) : void
src MatrixLine
dst MatrixLine
Результат void

ResampleLinear() публичный статический Метод

public static ResampleLinear ( MatrixLine src, MatrixLine dst ) : void
src MatrixLine
dst MatrixLine
Результат void

Spread() публичный Метод

public Spread ( float subtract = 0.01f, float multiply = 1f ) : void
subtract float
multiply float
Результат void

SpreadBlur() публичный статический Метод

public static SpreadBlur ( MatrixLine &curr, MatrixLine &prev, int blur ) : void
curr MatrixLine
prev MatrixLine
blur int
Результат void

SpreadMultiply() публичный Метод

public SpreadMultiply ( float multiply = 1f ) : void
multiply float
Результат void

WriteCircular() публичный Метод

public WriteCircular ( FloatMatrix matrix, Coord center, float radius ) : void
matrix FloatMatrix
center Coord
radius float
Результат void

WriteInclined() публичный Метод

public WriteInclined ( FloatMatrix matrix, Vector2 start, Vector2 step ) : void
matrix FloatMatrix
start Vector2
step Vector2
Результат void

WriteLine() публичный Метод

public WriteLine ( FloatMatrix matrix, int z ) : void
matrix FloatMatrix
z int
Результат void

WriteLine() публичный Метод

public WriteLine ( FloatMatrix matrix, int z, MatrixLine mask ) : void
matrix FloatMatrix
z int
mask MatrixLine
Результат void

WriteRow() публичный Метод

public WriteRow ( FloatMatrix matrix, int x ) : void
matrix FloatMatrix
x int
Результат void

WriteRow() публичный Метод

public WriteRow ( FloatMatrix matrix, int x, MatrixLine mask ) : void
matrix FloatMatrix
x int
mask MatrixLine
Результат void

WriteSquare() публичный Метод

public WriteSquare ( FloatMatrix matrix, Coord center, int radius ) : void
matrix FloatMatrix
center Coord
radius int
Результат void

Описание свойств

arr публичное свойство

public float[] arr
Результат float[]

length публичное свойство

public int length
Результат int

offset публичное свойство

public int offset
Результат int