NotifyingQuaternion.dq constructor

NotifyingQuaternion.dq(
  1. Quaternion q,
  2. Vector3 omega
)

Extension of the standard Quaternion class, implementing the ChangeNotifier functionality. This allows any interested party to be notified when the value of this quaternion changes.

This class can be used as a regular Quaternion class. However, if you do subscribe to notifications, don't forget to eventually unsubscribe in order to avoid resource leaks.

Direct modification of this quaternion's storage is not allowed.

Constructs a quaternion from time derivative of q with angular velocity omega.

Implementation

factory NotifyingQuaternion.dq(Quaternion q, Vector3 omega) =>
    NotifyingQuaternion._()..setDQ(q, omega);