LuckyStopProblem class final
一次停止求解的输入;例如传给 solver.solve(problem)。
- Annotations
Constructors
- LuckyStopProblem({required double start, required LuckyStopCandidate candidate, required double cruiseSpeed, required double frameMs, required double decelerationMs, required LuckyEasing easing, required LuckyStopSelection selection, int direction = 1})
-
创建求解输入;
direction应为 +1 或 −1,其余值单位须一致。const
Properties
- candidate → LuckyStopCandidate
-
按上游顺序计算的候选位移函数。
final
- cruiseSpeed → double
-
匀速阶段的每帧速度;老虎机保留配置速度的符号。
final
- decelerationMs → double
-
正的减速时长,单位为毫秒。
final
- direction → int
-
运动方向,+1 或 −1。
final
- easing → LuckyEasing
-
减速缓动。
final
- frameMs → double
-
首帧时长;非有限或非正时使用参考帧。
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selection → LuckyStopSelection
-
候选选择规则。
final
- start → double
-
当前位置 b。
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited