Quaternion.random constructor

Quaternion.random(Random rn)

Constructs a quaternion with a random rotation. The random number generator rn is used to generate the random numbers for the rotation.

Implementation

factory Quaternion.random(math.Random rn) =>
    new Quaternion._()..setRandom(rn);