mirror of
https://github.com/AssetRipper/MeshSharp.git
synced 2026-11-13 20:05:49 -10:00
25 lines
401 B
C#
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());
|
|
}
|
|
}
|
|
} |