Example #1
0
        private void checkIntersect(Slope slopeA, Slope slopeB, Vector3 intersectionPoint)
        {
            var intersection = slopeA.CalculateIntersection(slopeB);

            Assert.AreEqual(IntersectionType.INTERSECT, intersection.Type);
            TestMethods.AreEqualIsh(intersectionPoint, intersection.Point);
        }
Example #2
0
 private void checkIntersectionNone(Slope slopeA, Slope slopeB)
 {
     Assert.AreEqual(IntersectionType.NONE, slopeA.CalculateIntersection(slopeB).Type);
 }
Example #3
0
 private void checkNotOverlap(Slope slopeA, Slope slopeB)
 {
     Assert.AreNotEqual(IntersectionType.OVERLAP, slopeA.CalculateIntersection(slopeB).Type);
 }
Example #4
0
 private void checkOverlapsSelf(Slope slope)
 {
     Assert.AreEqual(IntersectionType.OVERLAP, slope.CalculateIntersection(slope).Type);
 }