Esempio n. 1
0
        private void TestProjection(ISegment segment, float expectedAlpha, Vector3 v)
        {
            var alpha = segment.Project(v);

            Assert.AreEqual(expectedAlpha, alpha);
            var projected = segment.F(alpha);
            var alpha2    = segment.Project(projected);

            Assert.AreEqual(alpha, alpha2);
        }