mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 01:45:29 +00:00
Added final multiplication test and split one test into two.
This commit is contained in:
parent
72b00b4460
commit
05fcf7961e
|
@ -282,18 +282,27 @@ module Vector3 =
|
|||
Assert.Equal(r1, r2)
|
||||
|
||||
[<Property>]
|
||||
let ``Vector3-float multiplication is the same as component-float multiplication`` (a : Vector3, f : float32) =
|
||||
let ``Left-handed Vector3-scalar multiplication is the same as component-scalar multiplication`` (a : Vector3, f : float32) =
|
||||
let r = a * f
|
||||
|
||||
Assert.Equal(a.X * f,r.X)
|
||||
Assert.Equal(a.Y * f,r.Y)
|
||||
Assert.Equal(a.Z * f,r.Z)
|
||||
|
||||
// Inverse direction
|
||||
[<Property>]
|
||||
let ``Right-handed Vector3-scalar multiplication is the same as component-scalar multiplication`` (a : Vector3, f : float32) =
|
||||
let r = f * a
|
||||
Assert.Equal(a.X * f,r.X)
|
||||
Assert.Equal(a.Y * f,r.Y)
|
||||
Assert.Equal(a.Z * f,r.Z)
|
||||
|
||||
[<Property>]
|
||||
let ``Static method Vector3-scalar multiplication is the same as component-scalar multiplication`` (a : Vector3, f : float32) =
|
||||
let r = Vector3.Multiply(a, f)
|
||||
|
||||
Assert.Equal(a.X * f,r.X)
|
||||
Assert.Equal(a.Y * f,r.Y)
|
||||
Assert.Equal(a.Z * f,r.Z)
|
||||
|
||||
[<Property>]
|
||||
let ``Vector3-Matrix3 multiplication works for right-handed notation`` (a : Matrix3, b : Vector3) =
|
||||
|
|
Loading…
Reference in a new issue