Package com.skillw.particlelib
Class EffectBezierKt
-
- All Implemented Interfaces:
public final class EffectBezierKt
-
-
Method Summary
Modifier and Type Method Description final static TwoRankBezierCurve
createTwoRankBezierCurve(Location p0, Location p1, Location p2, Double step, Long period)
创建一条二阶贝塞尔曲线 final static ThreeRankBezierCurve
createThreeRankBezierCurve(Location p0, Location p1, Location p2, Location p3, Double step, Long period)
创建一条三阶贝塞尔曲线 final static NRankBezierCurve
createNRankBezierCurve(List<Location> points, Double step, Long period)
创建一条N阶贝塞尔曲线 final static NRankBezierCurve
createNRankBezierCurve(Location points, Double step, Long period)
创建一条N阶贝塞尔曲线 -
-
Method Detail
-
createTwoRankBezierCurve
final static TwoRankBezierCurve createTwoRankBezierCurve(Location p0, Location p1, Location p2, Double step, Long period)
创建一条二阶贝塞尔曲线
- Parameters:
p0
- 第一点p1
- 第二点p2
- 第三点step
- 步长period
- 特效周期(如果需要可以使用)
-
createThreeRankBezierCurve
final static ThreeRankBezierCurve createThreeRankBezierCurve(Location p0, Location p1, Location p2, Location p3, Double step, Long period)
创建一条三阶贝塞尔曲线
- Parameters:
p0
- 第一点p1
- 第二点p2
- 第三点p3
- 第四点step
- 步长period
- 特效周期(如果需要可以使用)
-
createNRankBezierCurve
final static NRankBezierCurve createNRankBezierCurve(List<Location> points, Double step, Long period)
创建一条N阶贝塞尔曲线
- Parameters:
points
- 点集合step
- 步长period
- 特效周期(如果需要可以使用)
-
createNRankBezierCurve
final static NRankBezierCurve createNRankBezierCurve(Location points, Double step, Long period)
创建一条N阶贝塞尔曲线
- Parameters:
points
- 点集合step
- 步长period
- 特效周期(如果需要可以使用)
-
-
-
-