|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.shapelogic.polygon.CircleInterval
public class CircleInterval
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
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 |
---|
public CircleInterval()
Method Detail |
---|
public void addClosestAngle(double angle)
public void addGrowingAngle(double angle)
public void addFallingAngle(double angle)
public boolean containsZero()
public boolean contains(double angle)
public double intervalLength()
public static double normalizeAngle(double angle)
public static double angleDistance(double angle1, double angle2)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |