public void GetPoint() { BSplineSegment1F b = new BSplineSegment1F { Point1 = 1, Point2 = 3, Point3 = 7, Point4 = 8, }; Assert.Less(1, b.GetPoint(0)); Assert.Greater(8, b.GetPoint(1)); }
public void Flatten() { BSplineSegment1F s = new BSplineSegment1F { Point1 = 1, Point2 = 3, Point3 = 7, Point4 = 8, }; var points = new List<float>(); s.Flatten(points, 1, 1); Assert.AreEqual(2, points.Count); Assert.IsTrue(points.Contains(s.GetPoint(0))); Assert.IsTrue(points.Contains(s.GetPoint(1))); }
public void Flatten() { BSplineSegment1F s = new BSplineSegment1F { Point1 = 1, Point2 = 3, Point3 = 7, Point4 = 8, }; var points = new List <float>(); s.Flatten(points, 1, 1); Assert.AreEqual(2, points.Count); Assert.IsTrue(points.Contains(s.GetPoint(0))); Assert.IsTrue(points.Contains(s.GetPoint(1))); }