LuckySwirlMixer class final

将静止位置和搅拌角转换为位置、自转角,输出缓冲区始终复用。

Constructors

LuckySwirlMixer({required List<Offset> rest, required double containerRadius, required double bodyRadius})
创建运动学实例;rest 坐标须在容器内,半径须有限且非负。

Properties

angle → Float64List
自转角缓冲区,单位为弧度。
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
x → Float64List
横坐标缓冲区,长度等于静止位置数。
final
y → Float64List
纵坐标缓冲区,长度等于静止位置数。
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
update(double swirlDeg, double mix, {List<bool>? excluded}) → void
更新累计角 swirlDeg 和钳制到零至一的强度 mix。 excluded 为 true 的位置保持原值,列表存在时须与物体数等长。

Operators

operator ==(Object other) → bool
The equality operator.
inherited