Skip to content

Commit

Permalink
Uncomment lines in PolylineTransformAt test
Browse files Browse the repository at this point in the history
  • Loading branch information
DmytroMuravskyi committed Oct 4, 2023
1 parent 8d0e4bd commit 97ab9f5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Elements/test/PolylineTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -784,17 +784,17 @@ public void PolylineTransformAt()
Assert.Equal((0, 0), transform.Origin);
Assert.Equal(Vector3.XAxis.Negate(), transform.ZAxis);

//transform = polyline.TransformAt(0.5);
//Assert.Equal((2.5, 0), transform.Origin);
//Assert.Equal(Vector3.XAxis.Negate(), transform.ZAxis);
transform = polyline.TransformAt(0.5);
Assert.Equal((2.5, 0), transform.Origin);
Assert.Equal(Vector3.XAxis.Negate(), transform.ZAxis);

transform = polyline.TransformAt(1);
Assert.Equal((5, 0), transform.Origin);
Assert.Equal((Vector3.XAxis + Vector3.YAxis).Unitized().Negate(), transform.ZAxis);

//transform = polyline.TransformAt(1.25);
//Assert.Equal((5, 2.5), transform.Origin);
//Assert.Equal(Vector3.YAxis.Negate(), transform.ZAxis);
transform = polyline.TransformAt(1.25);
Assert.Equal((5, 2.5), transform.Origin);
Assert.Equal(Vector3.YAxis.Negate(), transform.ZAxis);

transform = polyline.TransformAt(2);
Assert.Equal((5, 10), transform.Origin);
Expand Down

0 comments on commit 97ab9f5

Please sign in to comment.