public static void AngleInteriorAt_for_house_shape(int angleIndex, double expectedAngleDegrees) { Polygon polygon = new Polygon(house); Assert.AreEqual(expectedAngleDegrees, polygon.AngleInteriorAt(angleIndex).DegreesRaw, Tolerance); }
public static void AngleInteriorAt_Throws_IndexOutOfRangeException_for_Index_Beyond_Points() { Polygon polygon = new Polygon(bowTieNonCrossingSegments); Assert.Throws <IndexOutOfRangeException>(() => polygon.AngleInteriorAt(7)); }
public static void AngleInteriorAt_for_bowTie_shape(int angleIndex, double expectedAngleDegrees) { Polygon polygon = new Polygon(bowTieNonCrossingOrIntersectingSegments); Assert.AreEqual(expectedAngleDegrees, polygon.AngleInteriorAt(angleIndex).DegreesRaw, Tolerance); }