System.Random.NextVector3()

Here are the examples of the csharp api System.Random.NextVector3() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 Source : NumericsUtils.cs
with MIT License
from vpenades

public static Quaternion NextQuaternion(this Random rnd)
        {
            var r = rnd.NextVector3() * (float)Math.PI*2;
            return Quaternion.CreateFromYawPitchRoll(r.X, r.Y, r.Z);
        }