mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-15 15:09:29 +00:00
49038f5d42
* Replace `Matrix2` with `Matrix3x2` * Update benchmarks * Add XML documentation for `Matrix3x2`
21 lines
454 B
C#
21 lines
454 B
C#
using Microsoft.Xna.Framework;
|
|
|
|
namespace MonoGame.Extended.Tests;
|
|
|
|
public sealed class Matrix3x2Tests
|
|
{
|
|
[Fact]
|
|
public void ConstructorTest()
|
|
{
|
|
Vector2 x = new Vector2(1, 2);
|
|
Vector2 y = new Vector2(3, 4);
|
|
Vector2 z = new Vector2(5, 6);
|
|
|
|
var matrix = new Matrix3x2(x.X, x.Y, y.X, y.Y, z.X, z.Y);
|
|
|
|
Assert.Equal(x, matrix.X);
|
|
Assert.Equal(y, matrix.Y);
|
|
Assert.Equal(z, matrix.Z);
|
|
}
|
|
}
|