C# Class Den.Tools.MatrixLine

Afficher le fichier Open project: louis030195/niwrad Class Usage Examples

Méthodes publiques

Свойство Type Description
arr float[]
length int
offset int

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Add ( float f ) : void
f float
Résultat void

AppendLine() public méthode

public AppendLine ( FloatMatrix matrix, int z ) : void
matrix FloatMatrix
z int
Résultat void

AppendLine() public méthode

public AppendLine ( FloatMatrix matrix, int z, MatrixLine mask ) : void
matrix FloatMatrix
z int
mask MatrixLine
Résultat void

AppendRow() public méthode

public AppendRow ( FloatMatrix matrix, int x ) : void
matrix FloatMatrix
x int
Résultat void

AppendRow() public méthode

public AppendRow ( FloatMatrix matrix, int x, MatrixLine mask ) : void
matrix FloatMatrix
x int
mask MatrixLine
Résultat void

Average() public méthode

public Average ( bool skipNegative = false ) : float
skipNegative bool
Résultat float

AverageSample() public méthode

public AverageSample ( int x ) : float
x int
Résultat float

Cavity() public méthode

public Cavity ( float intensity = 1 ) : void
intensity float
Résultat void

CubicSample() public méthode

public CubicSample ( float x ) : float
x float
Résultat float

Delta() public méthode

public Delta ( ) : void
Résultat void

DownsampleBlur() public méthode

public DownsampleBlur ( int downsample, float blur, MatrixLine tmpDownsized, MatrixLine tmpBlur ) : void
downsample int
blur float
tmpDownsized MatrixLine
tmpBlur MatrixLine
Résultat void

DownsampleFast() public static méthode

public static DownsampleFast ( MatrixLine src, MatrixLine dst, int ratio ) : void
src MatrixLine
dst MatrixLine
ratio int
Résultat void

Fill() public méthode

public Fill ( float f ) : void
f float
Résultat void

FillGaps() public méthode

public FillGaps ( int start, int end ) : void
start int
end int
Résultat void

FillGapsOld() public méthode

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
Résultat void

GaussianBlur() public méthode

public GaussianBlur ( Array tmp, float blur ) : void
tmp Array
blur float
Résultat void

Gradient() public méthode

public Gradient ( float startVal, float endVal ) : void
startVal float
endVal float
Résultat void

Invert() public méthode

public Invert ( ) : void
Résultat void

LinearSample() public méthode

public LinearSample ( float x, float radius ) : float
x float
radius float
Résultat float

MatrixLine() public méthode

public MatrixLine ( Array arr, int offset, int length ) : UnityEngine
arr Array
offset int
length int
Résultat UnityEngine

MatrixLine() public méthode

public MatrixLine ( int offset, int length ) : UnityEngine
offset int
length int
Résultat UnityEngine

Max() public méthode

public Max ( MatrixLine l ) : void
l MatrixLine
Résultat void

Normal() public méthode

public Normal ( float height ) : void
height float
Résultat void

PredictExtend() public méthode

public PredictExtend ( int start ) : void
start int
Résultat void

ReadCircular() public méthode

public ReadCircular ( FloatMatrix matrix, Coord center, float radius ) : void
matrix FloatMatrix
center Coord
radius float
Résultat void

ReadInclined() public méthode

public ReadInclined ( FloatMatrix matrix, Vector2 start, Vector2 step ) : void
matrix FloatMatrix
start Vector2
step Vector2
Résultat void

ReadLine() public méthode

public ReadLine ( FloatMatrix matrix, int z ) : void
matrix FloatMatrix
z int
Résultat void

ReadRow() public méthode

public ReadRow ( FloatMatrix matrix, int x ) : void
matrix FloatMatrix
x int
Résultat void

ReadSquare() public méthode

public ReadSquare ( FloatMatrix matrix, Coord center, int radius ) : void
matrix FloatMatrix
center Coord
radius int
Résultat void

ResampleCubic() public static méthode

public static ResampleCubic ( MatrixLine src, MatrixLine dst ) : void
src MatrixLine
dst MatrixLine
Résultat void

ResampleLinear() public static méthode

public static ResampleLinear ( MatrixLine src, MatrixLine dst ) : void
src MatrixLine
dst MatrixLine
Résultat void

Spread() public méthode

public Spread ( float subtract = 0.01f, float multiply = 1f ) : void
subtract float
multiply float
Résultat void

SpreadBlur() public static méthode

public static SpreadBlur ( MatrixLine &curr, MatrixLine &prev, int blur ) : void
curr MatrixLine
prev MatrixLine
blur int
Résultat void

SpreadMultiply() public méthode

public SpreadMultiply ( float multiply = 1f ) : void
multiply float
Résultat void

WriteCircular() public méthode

public WriteCircular ( FloatMatrix matrix, Coord center, float radius ) : void
matrix FloatMatrix
center Coord
radius float
Résultat void

WriteInclined() public méthode

public WriteInclined ( FloatMatrix matrix, Vector2 start, Vector2 step ) : void
matrix FloatMatrix
start Vector2
step Vector2
Résultat void

WriteLine() public méthode

public WriteLine ( FloatMatrix matrix, int z ) : void
matrix FloatMatrix
z int
Résultat void

WriteLine() public méthode

public WriteLine ( FloatMatrix matrix, int z, MatrixLine mask ) : void
matrix FloatMatrix
z int
mask MatrixLine
Résultat void

WriteRow() public méthode

public WriteRow ( FloatMatrix matrix, int x ) : void
matrix FloatMatrix
x int
Résultat void

WriteRow() public méthode

public WriteRow ( FloatMatrix matrix, int x, MatrixLine mask ) : void
matrix FloatMatrix
x int
mask MatrixLine
Résultat void

WriteSquare() public méthode

public WriteSquare ( FloatMatrix matrix, Coord center, int radius ) : void
matrix FloatMatrix
center Coord
radius int
Résultat void

Property Details

arr public_oe property

public float[] arr
Résultat float[]

length public_oe property

public int length
Résultat int

offset public_oe property

public int offset
Résultat int