Quaternion.random constructor
- 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) => Quaternion._()..setRandom(rn);