Update to use new Math.Abs(float)
This commit is contained in:
Родитель
936e4f9700
Коммит
d47240ec5e
|
@ -141,11 +141,6 @@ namespace System.Numerics
|
|||
|
||||
public static Vector2 Abs(Vector2 value)
|
||||
{
|
||||
var valueX = Convert.ToDouble(value.X.ToString());
|
||||
var valueY = Convert.ToDouble(value.Y.ToString());
|
||||
|
||||
return new Vector2((float)Math.Abs(valueX), (float)Math.Abs(valueY));
|
||||
|
||||
return new Vector2(Math.Abs(value.X), Math.Abs(value.Y));
|
||||
}
|
||||
|
||||
|
|
|
@ -150,12 +150,6 @@ namespace System.Numerics
|
|||
/// <returns>The absolute value vector.</returns>
|
||||
public static Vector3 Abs(Vector3 value)
|
||||
{
|
||||
var valueX = Convert.ToDouble(value.X.ToString());
|
||||
var valueY = Convert.ToDouble(value.Y.ToString());
|
||||
var valueZ = Convert.ToDouble(value.Z.ToString());
|
||||
|
||||
return new Vector3((float)Math.Abs(valueX), (float)Math.Abs(valueY), (float)Math.Abs(valueZ));
|
||||
|
||||
return new Vector3(Math.Abs(value.X), Math.Abs(value.Y), Math.Abs(value.Z));
|
||||
}
|
||||
|
||||
|
|
|
@ -184,13 +184,6 @@ namespace System.Numerics
|
|||
/// <returns>The absolute value vector.</returns>
|
||||
public static Vector4 Abs(Vector4 value)
|
||||
{
|
||||
var valueX = Convert.ToDouble(value.X.ToString());
|
||||
var valueY = Convert.ToDouble(value.Y.ToString());
|
||||
var valueZ = Convert.ToDouble(value.Z.ToString());
|
||||
var valueW = Convert.ToDouble(value.W.ToString());
|
||||
|
||||
return new Vector4((float)Math.Abs(valueX), (float)Math.Abs(valueY), (float)Math.Abs(valueZ), (float)Math.Abs(valueW));
|
||||
|
||||
return new Vector4(Math.Abs(value.X), Math.Abs(value.Y), Math.Abs(value.Z), Math.Abs(value.W));
|
||||
}
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
<SpecificVersion>True</SpecificVersion>
|
||||
</Reference>
|
||||
<Reference Include="System.Math, Version=1.4.0.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
|
||||
<HintPath>..\..\src\System.Numerics\packages\nanoFramework.System.Math.1.0.0-preview.5\lib\System.Math.dll</HintPath>
|
||||
<HintPath>..\..\src\System.Numerics\packages\nanoFramework.System.Math.1.4.0-preview.7\lib\System.Math.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
<SpecificVersion>True</SpecificVersion>
|
||||
</Reference>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="nanoFramework.CoreLibrary" version="1.10.4-preview.11" targetFramework="netnanoframework10" />
|
||||
<package id="nanoFramework.System.Math" version="1.0.0-preview.5" targetFramework="netnanoframework10" />
|
||||
<package id="nanoFramework.System.Math" version="1.4.0-preview.7" targetFramework="netnanoframework10" />
|
||||
<package id="nanoFramework.TestFramework" version="1.0.117" targetFramework="netnanoframework10" developmentDependency="true" />
|
||||
</packages>
|
Загрузка…
Ссылка в новой задаче