|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.nav.NavUtil
public final class NavUtil
Utility class with some navigation-system related helper methods.
| Method Summary | |
|---|---|
static Position |
getClosestPointOnSegment(Position start,
Position end,
Position position)
Computes the position on the segment defined by the given start and end positions which is closest to the given position. |
static double |
normalizeAngle(double angle)
Normalizes the given angle to a value in the range [-π; +π]. |
static double |
normalizeAngle(double angle,
double center)
Normalizes the given angle into an interval of size 2*π around the angle center. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static double normalizeAngle(double angle)
angle - the angle to normalize in [rad]
public static double normalizeAngle(double angle,
double center)
center. That is, the result is from the interval [
center - π; center + π].
angle - the angle to wrap in [rad]center - the center angle in [rad]
public static Position getClosestPointOnSegment(Position start,
Position end,
Position position)
start - the start position of the segmentend - the end position of the segmentposition - the position for which the closest point is to be computed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||