C# Class Den.Tools.MatrixLine

Exibir arquivo Open project: louis030195/niwrad Class Usage Examples

Public Properties

Property Type Description
arr float[]
length int
offset int

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

Add() public method

public Add ( float f ) : void
f float
return void

AppendLine() public method

public AppendLine ( FloatMatrix matrix, int z ) : void
matrix FloatMatrix
z int
return void

AppendLine() public method

public AppendLine ( FloatMatrix matrix, int z, MatrixLine mask ) : void
matrix FloatMatrix
z int
mask MatrixLine
return void

AppendRow() public method

public AppendRow ( FloatMatrix matrix, int x ) : void
matrix FloatMatrix
x int
return void

AppendRow() public method

public AppendRow ( FloatMatrix matrix, int x, MatrixLine mask ) : void
matrix FloatMatrix
x int
mask MatrixLine
return void

Average() public method

public Average ( bool skipNegative = false ) : float
skipNegative bool
return float

AverageSample() public method

public AverageSample ( int x ) : float
x int
return float

Cavity() public method

public Cavity ( float intensity = 1 ) : void
intensity float
return void

CubicSample() public method

public CubicSample ( float x ) : float
x float
return float

Delta() public method

public Delta ( ) : void
return void

DownsampleBlur() public method

public DownsampleBlur ( int downsample, float blur, MatrixLine tmpDownsized, MatrixLine tmpBlur ) : void
downsample int
blur float
tmpDownsized MatrixLine
tmpBlur MatrixLine
return void

DownsampleFast() public static method

public static DownsampleFast ( MatrixLine src, MatrixLine dst, int ratio ) : void
src MatrixLine
dst MatrixLine
ratio int
return void

Fill() public method

public Fill ( float f ) : void
f float
return void

FillGaps() public method

public FillGaps ( int start, int end ) : void
start int
end int
return void

FillGapsOld() public method

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
return void

GaussianBlur() public method

public GaussianBlur ( Array tmp, float blur ) : void
tmp Array
blur float
return void

Gradient() public method

public Gradient ( float startVal, float endVal ) : void
startVal float
endVal float
return void

Invert() public method

public Invert ( ) : void
return void

LinearSample() public method

public LinearSample ( float x, float radius ) : float
x float
radius float
return float

MatrixLine() public method

public MatrixLine ( Array arr, int offset, int length ) : UnityEngine
arr Array
offset int
length int
return UnityEngine

MatrixLine() public method

public MatrixLine ( int offset, int length ) : UnityEngine
offset int
length int
return UnityEngine

Max() public method

public Max ( MatrixLine l ) : void
l MatrixLine
return void

Normal() public method

public Normal ( float height ) : void
height float
return void

PredictExtend() public method

public PredictExtend ( int start ) : void
start int
return void

ReadCircular() public method

public ReadCircular ( FloatMatrix matrix, Coord center, float radius ) : void
matrix FloatMatrix
center Coord
radius float
return void

ReadInclined() public method

public ReadInclined ( FloatMatrix matrix, Vector2 start, Vector2 step ) : void
matrix FloatMatrix
start Vector2
step Vector2
return void

ReadLine() public method

public ReadLine ( FloatMatrix matrix, int z ) : void
matrix FloatMatrix
z int
return void

ReadRow() public method

public ReadRow ( FloatMatrix matrix, int x ) : void
matrix FloatMatrix
x int
return void

ReadSquare() public method

public ReadSquare ( FloatMatrix matrix, Coord center, int radius ) : void
matrix FloatMatrix
center Coord
radius int
return void

ResampleCubic() public static method

public static ResampleCubic ( MatrixLine src, MatrixLine dst ) : void
src MatrixLine
dst MatrixLine
return void

ResampleLinear() public static method

public static ResampleLinear ( MatrixLine src, MatrixLine dst ) : void
src MatrixLine
dst MatrixLine
return void

Spread() public method

public Spread ( float subtract = 0.01f, float multiply = 1f ) : void
subtract float
multiply float
return void

SpreadBlur() public static method

public static SpreadBlur ( MatrixLine &curr, MatrixLine &prev, int blur ) : void
curr MatrixLine
prev MatrixLine
blur int
return void

SpreadMultiply() public method

public SpreadMultiply ( float multiply = 1f ) : void
multiply float
return void

WriteCircular() public method

public WriteCircular ( FloatMatrix matrix, Coord center, float radius ) : void
matrix FloatMatrix
center Coord
radius float
return void

WriteInclined() public method

public WriteInclined ( FloatMatrix matrix, Vector2 start, Vector2 step ) : void
matrix FloatMatrix
start Vector2
step Vector2
return void

WriteLine() public method

public WriteLine ( FloatMatrix matrix, int z ) : void
matrix FloatMatrix
z int
return void

WriteLine() public method

public WriteLine ( FloatMatrix matrix, int z, MatrixLine mask ) : void
matrix FloatMatrix
z int
mask MatrixLine
return void

WriteRow() public method

public WriteRow ( FloatMatrix matrix, int x ) : void
matrix FloatMatrix
x int
return void

WriteRow() public method

public WriteRow ( FloatMatrix matrix, int x, MatrixLine mask ) : void
matrix FloatMatrix
x int
mask MatrixLine
return void

WriteSquare() public method

public WriteSquare ( FloatMatrix matrix, Coord center, int radius ) : void
matrix FloatMatrix
center Coord
radius int
return void

Property Details

arr public_oe property

public float[] arr
return float[]

length public_oe property

public int length
return int

offset public_oe property

public int offset
return int