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