Quaternion.random constructor Null safety
- 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);