mirror of
https://github.com/aelurum/AssetStudio.git
synced 2026-11-15 19:28:48 -05:00
Replace Math with MathF
This commit is contained in:
@@ -45,9 +45,9 @@ namespace AssetStudio
|
||||
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
if (!(other is Vector2))
|
||||
if (!(other is Vector2 vector2))
|
||||
return false;
|
||||
return Equals((Vector2)other);
|
||||
return Equals(vector2);
|
||||
}
|
||||
|
||||
public bool Equals(Vector2 other)
|
||||
@@ -73,7 +73,7 @@ namespace AssetStudio
|
||||
|
||||
public float Length()
|
||||
{
|
||||
return (float)Math.Sqrt(LengthSquared());
|
||||
return MathF.Sqrt(LengthSquared());
|
||||
}
|
||||
|
||||
public float LengthSquared()
|
||||
|
||||
@@ -49,9 +49,9 @@ namespace AssetStudio
|
||||
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
if (!(other is Vector3))
|
||||
if (!(other is Vector3 vector3))
|
||||
return false;
|
||||
return Equals((Vector3)other);
|
||||
return Equals(vector3);
|
||||
}
|
||||
|
||||
public bool Equals(Vector3 other)
|
||||
@@ -79,7 +79,7 @@ namespace AssetStudio
|
||||
|
||||
public float Length()
|
||||
{
|
||||
return (float)Math.Sqrt(LengthSquared());
|
||||
return MathF.Sqrt(LengthSquared());
|
||||
}
|
||||
|
||||
public float LengthSquared()
|
||||
|
||||
@@ -61,9 +61,9 @@ namespace AssetStudio
|
||||
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
if (!(other is Vector4))
|
||||
if (!(other is Vector4 vector4))
|
||||
return false;
|
||||
return Equals((Vector4)other);
|
||||
return Equals(vector4);
|
||||
}
|
||||
|
||||
public bool Equals(Vector4 other)
|
||||
@@ -93,7 +93,7 @@ namespace AssetStudio
|
||||
|
||||
public float Length()
|
||||
{
|
||||
return (float)Math.Sqrt(LengthSquared());
|
||||
return MathF.Sqrt(LengthSquared());
|
||||
}
|
||||
|
||||
public float LengthSquared()
|
||||
|
||||
Reference in New Issue
Block a user