Files
MeshSharp/MeshSharp.Tests/VectorExtensionsTests.cs
2022-02-11 21:09:50 -05:00

25 lines
401 B
C#

using System;
using Xunit;
namespace AssetRipper.MeshSharp.Tests
{
public class VectorExtensionsTests
{
[Fact()]
public void GetLengthTest()
{
XYZ xyz = new XYZ(1, 1, 1);
double result = Math.Sqrt(3);
Assert.Equal(result, xyz.GetLength());
}
[Fact()]
public void NormalizeTest()
{
XYZ xyz = new XYZ(1, 1, 1);
Assert.Equal(1, xyz.Normalize().GetLength());
}
}
}