mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-15 15:09:29 +00:00
Update for Monogame 3.8.2.1105 (#931)
* Update MonoGame references to 3.8.2.1105 * Vector2.Rotate is not built into MonoGame * Update to net8 * Update version number * Update changelog * Deprecate Vector2.Rotate for MonoGame only * Deprecate it but don't error it so API doesn't break for others.
This commit is contained in:
committed by
GitHub
parent
40d260b454
commit
da81c353f6
@@ -36,6 +36,7 @@ namespace MonoGame.Extended.Tests
|
||||
Assert.Equal(new Vector2(10, 5), c);
|
||||
}
|
||||
|
||||
#if FNA || KNI
|
||||
[Fact]
|
||||
public void Vector2_Rotate_90_Degrees_Test()
|
||||
{
|
||||
@@ -63,6 +64,7 @@ namespace MonoGame.Extended.Tests
|
||||
Assert.True(new Vector2(7.071068f, -7.071068f).EqualsWithTolerence(b));
|
||||
}
|
||||
|
||||
#endif
|
||||
[Fact]
|
||||
public void Vector2_Truncate_Test()
|
||||
{
|
||||
@@ -91,7 +93,12 @@ namespace MonoGame.Extended.Tests
|
||||
{
|
||||
var a = new Vector2(0, -10);
|
||||
var b = new Vector2(10, 0);
|
||||
#if FNA || KNI
|
||||
var c = -Vector2.UnitY.Rotate(MathHelper.ToRadians(45));
|
||||
#else
|
||||
var c = -Vector2.UnitY;
|
||||
c.Rotate(MathHelper.ToRadians(45));
|
||||
#endif
|
||||
|
||||
Assert.Equal(MathHelper.ToRadians(0), a.ToAngle());
|
||||
Assert.Equal(MathHelper.ToRadians(90), b.ToAngle());
|
||||
|
||||
Reference in New Issue
Block a user