## org.shapelogic.polygon Class CircleInterval

```java.lang.Object
org.shapelogic.polygon.CircleInterval
```

`public class CircleIntervalextends java.lang.Object`

So the idea is that you should have a slice of the circle Since it is circular it does not really make sense to talk about: min and max what is the equivalent I guess start and end assuming that you go in normal direction of increasing angles. This will often be the same as min and max, but sometimes there is a cross over. That really just mean that check for angle in [max; 2 * PI[ and [0; min] Otherwise it is check [min; max]. How do I make it be the full circle? Is this a closed interval? For now do not create getter and setter

Author:

Constructor Summary
`CircleInterval()`

Method Summary
` void` `addClosestAngle(double angle)`

` void` `addFallingAngle(double angle)`
Turn new angle into end point
` void` `addGrowingAngle(double angle)`
Turn new angle into start point
`static double` ```angleDistance(double angle1, double angle2)```
signed angle from angle1 to angle2
` boolean` `contains(double angle)`

` boolean` `containsZero()`

` double` `intervalLength()`

`static double` `normalizeAngle(double angle)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CircleInterval

`public CircleInterval()`
Method Detail

`public void addClosestAngle(double angle)`

`public void addGrowingAngle(double angle)`
Turn new angle into start point

`public void addFallingAngle(double angle)`
Turn new angle into end point

### containsZero

`public boolean containsZero()`

### contains

`public boolean contains(double angle)`

### intervalLength

`public double intervalLength()`

### normalizeAngle

`public static double normalizeAngle(double angle)`

### angleDistance

```public static double angleDistance(double angle1,
double angle2)```
signed angle from angle1 to angle2