Beispiel #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);
        }
Beispiel #2
0
 private void checkIntersectionNone(Slope slopeA, Slope slopeB)
 {
     Assert.AreEqual(IntersectionType.NONE, slopeA.CalculateIntersection(slopeB).Type);
 }
Beispiel #3
0
 private void checkNotOverlap(Slope slopeA, Slope slopeB)
 {
     Assert.AreNotEqual(IntersectionType.OVERLAP, slopeA.CalculateIntersection(slopeB).Type);
 }
Beispiel #4
0
 private void checkOverlapsSelf(Slope slope)
 {
     Assert.AreEqual(IntersectionType.OVERLAP, slope.CalculateIntersection(slope).Type);
 }