mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 01:15:35 +00:00
Added extra filtering to generated Quaternions.
This commit is contained in:
parent
c64327b8a9
commit
c12eefa0cf
|
@ -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