mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-09 09:35:31 +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
|
singleArb
|
||||||
|> Gen.three
|
|> Gen.three
|
||||||
|> Gen.map (fun (x,y,z) -> Quaternion(x,y,z,0.0f) |> Quaternion.Normalize)
|
|> 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
|
|> Arb.fromGen
|
||||||
|
|
||||||
let mat2 =
|
let mat2 =
|
||||||
|
|
Loading…
Reference in a new issue