mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 10:55:32 +00:00
17 lines
447 B
C#
17 lines
447 B
C#
|
using Xunit;
|
|||
|
|
|||
|
namespace OpenTK.Tests.Unit
|
|||
|
{
|
|||
|
public class BezierCurveTests
|
|||
|
{
|
|||
|
[Fact]
|
|||
|
public void StraightLine()
|
|||
|
{
|
|||
|
var curve = new BezierCurve(Vector2.Zero, Vector2.One);
|
|||
|
Assert.Equal(Vector2.Zero, curve.CalculatePoint(0.0f));
|
|||
|
Assert.Equal(Vector2.One, curve.CalculatePoint(1.0f));
|
|||
|
Assert.Equal(new Vector2(0.5f, 0.5f), curve.CalculatePoint(0.5f));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|