WheelSectorAngles class final
由配置计算的扇区角度,供布局和停止求解共用。
- Annotations
Constructors
- WheelSectorAngles.fromConfig(WheelConfig config)
-
创建角度表;相同权重使用等分公式,非有限或非正权重抛 ArgumentError。
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sectorAtPointer(
double rotateDeg, double offsetDegree) → int - 反算指针下的奖品;无奖品或非有限角度返回 −1。
-
startDeg(
int i) → double -
返回第
i个扇区的起始角,单位为度。 -
sweepDeg(
int i) → double -
返回第
i个扇区的角宽,单位为度。 -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited