Added extra filtering to generated Quaternions.
This commit is contained in:
parent
c64327b8a9
commit
c12eefa0cf
1 changed files with 1 additions and 0 deletions
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue