NotifyingQuaternion.euler constructor

NotifyingQuaternion.euler(
  1. double yaw,
  2. double pitch,
  3. double roll
)

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 yaw, pitch and roll.

Implementation

factory NotifyingQuaternion.euler(double yaw, double pitch, double roll) =>
    NotifyingQuaternion._()..setEuler(yaw, pitch, roll);