Added extra filtering to generated Quaternions.

This commit is contained in:
Jarl Gullberg 2017-06-02 10:39:13 +02:00
parent c64327b8a9
commit c12eefa0cf
No known key found for this signature in database
GPG key ID: 750FF6F6BDA72D23

View file

@ -40,6 +40,7 @@ module private Generators =
singleArb
|> Gen.three
|> Gen.map (fun (x,y,z) -> Quaternion(x,y,z,0.0f) |> Quaternion.Normalize)
|> Gen.filter (fun q -> not <| (Single.IsNaN q.Length || Single.IsInfinity q.Length ))
|> Arb.fromGen
let mat2 =