C# Class Fractrace.Formulas

Fest implementierte Formeln.
Mostra file Open project: trafassel/Gestaltlupe Class Usage Examples

Public Properties

Property Type Description
col double[]

Protected Properties

Property Type Description
mGlobalAngleX double
mGlobalAngleY double
mGlobalAngleZ double
mInternFormula Fractrace.TomoGeometry.TomoFormula
mProjection Fractrace.Geometry.Projection
mTransforms List
old_formula int
old_jx double
old_jy double
old_jz double
old_jzz double
old_zykl long

Public Methods

Method Description
FixPoint ( long zykl, double x, double y, double z, double zz, double xd, double yd, double zd, double zzd, double wix, double wiy, double wiz, double jx, double jy, double jz, double jzz, int formula, bool invers, int pixelX, int pixelY, bool use4Points ) : double

Im Gegensatz zu klasischen Funktion Winkel wird hier von vorn gerechnet, die isometrische Ansicht entfällt.

Formulas ( ) : System

Initialisierung

Formulas ( Fractrace.DataTypes.PictureData pData ) : System

Initialisierung

GetTransform ( double x, double y, double z ) : Fractrace.Geometry.Vec3

Wendet die in mProjection enthaltenen Transformationen an.

GetTransformWithoutProjection ( double x, double y, double z ) : Fractrace.Geometry.Vec3

Transform the point (x,y,z) corresponding the defined rotations.

RayCastAt ( long zykl, double x, double y, double z, double zz, double xd, double yd, double zd, double zzd, double wix, double wiy, double wiz, double jx, double jy, double jz, double jzz, int formula, bool invers, int pixelX, int pixelY, bool use4Points ) : double

Copy of fixpoint (no normals are computed).

Rechne ( double x, double y, double z, double zz, long zykl, double wix, double wiy, double wiz, double jx, double jy, double jz, double jzz, int formula, bool invers ) : int

Die Berechnung wird gestartet.

TestPoint ( double x, double y, double z, bool inverse ) : bool

Test, if the given point is element of the difined set. Don't work with the internal formulas.

Winkel ( long zykl, double x, double y, double z, double zz, double xd, double yd, double zd, double zzd, double wix, double wiy, double wiz, double jx, double jy, double jz, double jzz, int formula, bool perspective, bool invers ) : double

Protected Methods

Method Description
LinearCos ( double angle ) : double
LinearSin ( double angle ) : double
LinearTan2 ( double angle1, double angle2 ) : double
Transform ( double x, double y, double z ) : Fractrace.Geometry.Vec3

Transformiert den angegebenen Punkt. Die Rotationen um (0,0,0) werden dabei nicht beruecksichtigt (outdated).

Private Methods

Method Description
Dra ( double ar, double ai, double br, double bi, long zkl ) : long
H1 ( double ar, double ai, double aj, double ak, double br, double bi, double bj, double bk, long zkl ) : long
H2 ( double ar, double ai, double aj, double ak, double br, double bi, double bj, double bk, long zkl ) : long
H3 ( double ar, double ai, double aj, double ak, double br, double bi, double bj, double bk, long zkl ) : long
H4 ( double ar, double ai, double aj, double ak, double br, double bi, double bj, double bk, long zkl ) : long
H6 ( double ar, double ai, double aj, double ak, double br, double bi, double bj, double bk, long zkl, bool invers ) : long

Abgeänderte Form vom Mandelbulb

H7 ( double ar, double ai, double aj, double ak, double br, double bi, double bj, double bk, long zkl, bool invers ) : long

Benutzung der Vektorrotation.

Komp ( double ar, double ai, double br, double bi, long zkl ) : long
Mandelbulb3D ( double ar, double ai, double aj, double ak, double br, double bi, double bj, double bk, long zkl, bool invers ) : long
Mandelbulb3DPow2 ( double ar, double ai, double aj, double ak, double br, double bi, double bj, double bk, long zkl, bool invers ) : long

Quadratische Version (ohne Winkel)

Mandelbulb3DPow8 ( double ar, double ai, double aj, double ak, double br, double bi, double bj, double bk, long zkl, bool invers ) : long

Quadratische Version (ohne Winkel)

Qu ( double ar, double ai, double aj, double ak, double br, double bi, double bj, double bk, long zkl ) : long
Wuerfel ( double ar, double ai, double aj, double ak, double br, double bi, double bj, double bk, long zkl ) : long

Method Details

FixPoint() public method

Im Gegensatz zu klasischen Funktion Winkel wird hier von vorn gerechnet, die isometrische Ansicht entfällt.
public FixPoint ( long zykl, double x, double y, double z, double zz, double xd, double yd, double zd, double zzd, double wix, double wiy, double wiz, double jx, double jy, double jz, double jzz, int formula, bool invers, int pixelX, int pixelY, bool use4Points ) : double
zykl long
x double
y double
z double
zz double
xd double
yd double
zd double
zzd double
wix double
wiy double
wiz double
jx double
jy double
jz double
jzz double
formula int
invers bool
pixelX int
pixelY int
use4Points bool Hier wird unterschieden, ob nur dieser Punkt, oder auch seine Nachbarpixel /// betrachtet werden.
return double

Formulas() public method

Initialisierung
public Formulas ( ) : System
return System

Formulas() public method

Initialisierung
public Formulas ( Fractrace.DataTypes.PictureData pData ) : System
pData Fractrace.DataTypes.PictureData
return System

GetTransform() public method

Wendet die in mProjection enthaltenen Transformationen an.
public GetTransform ( double x, double y, double z ) : Fractrace.Geometry.Vec3
x double The x.
y double The y.
z double The z.
return Fractrace.Geometry.Vec3

GetTransformWithoutProjection() public method

Transform the point (x,y,z) corresponding the defined rotations.
public GetTransformWithoutProjection ( double x, double y, double z ) : Fractrace.Geometry.Vec3
x double The x.
y double The y.
z double The z.
return Fractrace.Geometry.Vec3

LinearCos() protected method

protected LinearCos ( double angle ) : double
angle double
return double

LinearSin() protected method

protected LinearSin ( double angle ) : double
angle double
return double

LinearTan2() protected method

protected LinearTan2 ( double angle1, double angle2 ) : double
angle1 double
angle2 double
return double

RayCastAt() public method

Copy of fixpoint (no normals are computed).
public RayCastAt ( long zykl, double x, double y, double z, double zz, double xd, double yd, double zd, double zzd, double wix, double wiy, double wiz, double jx, double jy, double jz, double jzz, int formula, bool invers, int pixelX, int pixelY, bool use4Points ) : double
zykl long
x double
y double
z double
zz double
xd double
yd double
zd double
zzd double
wix double
wiy double
wiz double
jx double
jy double
jz double
jzz double
formula int
invers bool
pixelX int
pixelY int
use4Points bool
return double

Rechne() public method

Die Berechnung wird gestartet.
public Rechne ( double x, double y, double z, double zz, long zykl, double wix, double wiy, double wiz, double jx, double jy, double jz, double jzz, int formula, bool invers ) : int
x double x-Position in Ansichtskoordinaten
y double y-Position in Ansichtskoordinaten
z double z-Position in Ansichtskoordinaten
zz double zz-Position in Ansichtskoordinaten (alt)
zykl long Benutzte Zyklen
wix double Globaler Winkel X
wiy double Globaler Winkel Y
wiz double Globaler Winkel Z
jx double Julia Parameter x
jy double Julia Parameter y
jz double Julia Parameter z
jzz double Julia Parameter zz
formula int Formel-ID
invers bool Gibt an, ob von innen gerechnet wird.
return int

TestPoint() public method

Test, if the given point is element of the difined set. Don't work with the internal formulas.
public TestPoint ( double x, double y, double z, bool inverse ) : bool
x double
y double
z double
inverse bool
return bool

Transform() protected method

Transformiert den angegebenen Punkt. Die Rotationen um (0,0,0) werden dabei nicht beruecksichtigt (outdated).
protected Transform ( double x, double y, double z ) : Fractrace.Geometry.Vec3
x double
y double
z double
return Fractrace.Geometry.Vec3

Winkel() public method

public Winkel ( long zykl, double x, double y, double z, double zz, double xd, double yd, double zd, double zzd, double wix, double wiy, double wiz, double jx, double jy, double jz, double jzz, int formula, bool perspective, bool invers ) : double
zykl long
x double
y double
z double
zz double
xd double
yd double
zd double
zzd double
wix double
wiy double
wiz double
jx double
jy double
jz double
jzz double
formula int
perspective bool
invers bool
return double

Property Details

col public_oe property

public double[] col
return double[]

mGlobalAngleX protected_oe property

protected double mGlobalAngleX
return double

mGlobalAngleY protected_oe property

protected double mGlobalAngleY
return double

mGlobalAngleZ protected_oe property

protected double mGlobalAngleZ
return double

mInternFormula protected_oe property

protected TomoFormula,Fractrace.TomoGeometry mInternFormula
return Fractrace.TomoGeometry.TomoFormula

mProjection protected_oe property

protected Projection,Fractrace.Geometry mProjection
return Fractrace.Geometry.Projection

mTransforms protected_oe property

protected List mTransforms
return List

old_formula protected_oe property

protected int old_formula
return int

old_jx protected_oe property

protected double old_jx
return double

old_jy protected_oe property

protected double old_jy
return double

old_jz protected_oe property

protected double old_jz
return double

old_jzz protected_oe property

protected double old_jzz
return double

old_zykl protected_oe property

protected long old_zykl
return long