Class ThreeRankBezierCurve
-
- All Implemented Interfaces:
public final class ThreeRankBezierCurve extends ParticleObject
表示一条三阶贝塞尔曲线
给定四点, 自动生成一条三阶贝塞尔曲线
Zoyn
-
-
Constructor Summary
Constructors Constructor Description ThreeRankBezierCurve(Location p0, Location p1, Location p2, Location p3, Double step)
-
Method Summary
Modifier and Type Method Description final LocationgetP0()final UnitsetP0(Location p0)final LocationgetP1()final UnitsetP1(Location p1)final LocationgetP2()final UnitsetP2(Location p2)final LocationgetP3()final UnitsetP3(Location p3)final DoublegetStep()final UnitsetStep(Double step)Unitshow()final UnitresetLocations()重新计算贝塞尔曲线上的点 -
-
Constructor Detail
-
ThreeRankBezierCurve
ThreeRankBezierCurve(Location p0, Location p1, Location p2, Location p3, Double step)
- Parameters:
p0- 连续点p1- 控制点p2- 控制点p3- 连续点step- 每个粒子的间隔(也即步长)
-
-
-
-