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 Location
getP0()
final Unit
setP0(Location p0)
final Location
getP1()
final Unit
setP1(Location p1)
final Location
getP2()
final Unit
setP2(Location p2)
final Location
getP3()
final Unit
setP3(Location p3)
final Double
getStep()
final Unit
setStep(Double step)
Unit
show()
final Unit
resetLocations()
重新计算贝塞尔曲线上的点 -
-
Constructor Detail
-
ThreeRankBezierCurve
ThreeRankBezierCurve(Location p0, Location p1, Location p2, Location p3, Double step)
- Parameters:
p0
- 连续点p1
- 控制点p2
- 控制点p3
- 连续点step
- 每个粒子的间隔(也即步长)
-
-
-
-