Package com.skillw.particlelib
Class EffectRendererKt
-
- All Implemented Interfaces:
public final class EffectRendererKt
-
-
Method Summary
Modifier and Type Method Description final static GeneralEquationRenderer
createGeneralEquationRenderer(Location origin, Function1<Double, Double> function, Double minX, Double maxX, Double dx, Long period)
创建一个普通方程渲染器 final static ParametricEquationRenderer
createParametricEquationRenderer(Location origin, Function1<Double, Double> xFunction, Function1<Double, Double> yFunction, Function1<Double, Double> zFunction, Double minT, Double maxT, Double dt, Long period)
创建一个参数方程渲染器 final static PolarEquationRenderer
createPolarEquationRenderer(Location origin, Function1<Double, Double> rFunction, Double minT, Double maxT, Double dt, Long period)
创建一个极坐标方程渲染器 -
-
Method Detail
-
createGeneralEquationRenderer
final static GeneralEquationRenderer createGeneralEquationRenderer(Location origin, Function1<Double, Double> function, Double minX, Double maxX, Double dx, Long period)
创建一个普通方程渲染器
- Parameters:
origin
- 原点function
- 函数minX
- 最小XmaxX
- 最大Xdx
- 每次增加的Xperiod
- 特效周期(如果需要可以使用)
-
createParametricEquationRenderer
final static ParametricEquationRenderer createParametricEquationRenderer(Location origin, Function1<Double, Double> xFunction, Function1<Double, Double> yFunction, Function1<Double, Double> zFunction, Double minT, Double maxT, Double dt, Long period)
创建一个参数方程渲染器
- Parameters:
origin
- 原点xFunction
- X函数yFunction
- Y函数zFunction
- Z函数minT
- 最小TmaxT
- 最大Tdt
- 每次增加的Tperiod
- 特效周期(如果需要可以使用)
-
createPolarEquationRenderer
final static PolarEquationRenderer createPolarEquationRenderer(Location origin, Function1<Double, Double> rFunction, Double minT, Double maxT, Double dt, Long period)
创建一个极坐标方程渲染器
- Parameters:
origin
- 原点rFunction
- R函数minT
- 最小TmaxT
- 最大Tdt
- 每次增加的Tperiod
- 特效周期(如果需要可以使用)
-
-
-
-