|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.mit.sketch.util.AngleUtils
public class AngleUtils
| Constructor Summary | |
|---|---|
AngleUtils()
|
|
| Method Summary | |
|---|---|
static double |
fixTheta(double theta)
Normalize theta to be between 0 and 2pi |
static double |
orientationDiff(double angle1,
double angle2)
Return the difference in the orientations of two angles. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AngleUtils()
| Method Detail |
|---|
public static double fixTheta(double theta)
theta - angle in radians
public static double orientationDiff(double angle1,
double angle2)
angle1 - angle in radiansangle2 - angle in radians
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||