|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SteeringStuff.SteeringTools
public class SteeringTools
This class provides usefull tool for steerings, especially common mathematical calculations.
Nested Class Summary | |
---|---|
static class |
SteeringTools.LineType
|
Constructor Summary | |
---|---|
SteeringTools()
|
Method Summary | |
---|---|
static cz.cuni.amis.pogamut.base3d.worldview.object.Location[] |
commonPoints(cz.cuni.amis.pogamut.base3d.worldview.object.Location P0,
double r0,
cz.cuni.amis.pogamut.base3d.worldview.object.Location P1,
double r1)
|
static double |
degreesToRadians(double deg)
|
static double |
getAngle(cz.cuni.amis.pogamut.base3d.worldview.object.Location botLocation,
cz.cuni.amis.pogamut.base3d.worldview.object.Rotation botRotation,
cz.cuni.amis.pogamut.base3d.worldview.object.Location point)
|
static double |
getAngleOld(cz.cuni.amis.pogamut.base3d.worldview.object.Location botLocation,
cz.cuni.amis.pogamut.base3d.worldview.object.Location focus,
cz.cuni.amis.pogamut.base3d.worldview.object.Location point)
Deprecated. |
static javax.vecmath.Vector2d |
getIntersection(javax.vecmath.Vector2d sA,
javax.vecmath.Vector2d dA,
javax.vecmath.Vector2d sB,
javax.vecmath.Vector2d dB,
SteeringTools.LineType typeA,
SteeringTools.LineType typeB)
Computes the intersection of the lines A and B (line has the start point and its direction). |
static javax.vecmath.Vector2d |
getIntersectionOld(javax.vecmath.Vector2d sA,
javax.vecmath.Vector2d dA,
javax.vecmath.Vector2d sB,
javax.vecmath.Vector2d dB)
Gets the intersection of the half-lines A and B (line has the start point and its direction. |
static javax.vecmath.Vector2d |
getNearestPoint(javax.vecmath.Vector2d start,
javax.vecmath.Vector2d end,
javax.vecmath.Vector2d pointP,
boolean justAbscissa)
|
static javax.vecmath.Vector3d |
getTurningVector(javax.vecmath.Vector3d actualVelocity,
boolean left)
Returns the rotation vector, that after combining with the actualVelocity the vector on the left or right side will be created. |
static javax.vecmath.Vector3d |
getTurningVector2(javax.vecmath.Vector3d actualVelocity,
boolean left)
Returns the rotation vector perpendicular to the actualVelocity. |
static boolean |
haveSameDirection(javax.vecmath.Vector2d sA,
javax.vecmath.Vector2d dA,
javax.vecmath.Vector2d sB,
javax.vecmath.Vector2d dB)
Gets the intersection of the half-lines A and B (line has the start point and its direction. |
static boolean |
pointIsLeftFromTheVector(javax.vecmath.Vector3d vector,
javax.vecmath.Vector3d point)
|
static double |
radiansToDegrees(double rad)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SteeringTools()
Method Detail |
---|
public static javax.vecmath.Vector2d getIntersection(javax.vecmath.Vector2d sA, javax.vecmath.Vector2d dA, javax.vecmath.Vector2d sB, javax.vecmath.Vector2d dB, SteeringTools.LineType typeA, SteeringTools.LineType typeB)
public static javax.vecmath.Vector2d getIntersectionOld(javax.vecmath.Vector2d sA, javax.vecmath.Vector2d dA, javax.vecmath.Vector2d sB, javax.vecmath.Vector2d dB)
public static boolean haveSameDirection(javax.vecmath.Vector2d sA, javax.vecmath.Vector2d dA, javax.vecmath.Vector2d sB, javax.vecmath.Vector2d dB)
public static javax.vecmath.Vector2d getNearestPoint(javax.vecmath.Vector2d start, javax.vecmath.Vector2d end, javax.vecmath.Vector2d pointP, boolean justAbscissa)
public static boolean pointIsLeftFromTheVector(javax.vecmath.Vector3d vector, javax.vecmath.Vector3d point)
public static javax.vecmath.Vector3d getTurningVector(javax.vecmath.Vector3d actualVelocity, boolean left)
public static javax.vecmath.Vector3d getTurningVector2(javax.vecmath.Vector3d actualVelocity, boolean left)
public static double radiansToDegrees(double rad)
public static double degreesToRadians(double deg)
public static cz.cuni.amis.pogamut.base3d.worldview.object.Location[] commonPoints(cz.cuni.amis.pogamut.base3d.worldview.object.Location P0, double r0, cz.cuni.amis.pogamut.base3d.worldview.object.Location P1, double r1)
P0
- center of first circler0
- radius of first circleP1
- r1
-
@Deprecated public static double getAngleOld(cz.cuni.amis.pogamut.base3d.worldview.object.Location botLocation, cz.cuni.amis.pogamut.base3d.worldview.object.Location focus, cz.cuni.amis.pogamut.base3d.worldview.object.Location point)
public static double getAngle(cz.cuni.amis.pogamut.base3d.worldview.object.Location botLocation, cz.cuni.amis.pogamut.base3d.worldview.object.Rotation botRotation, cz.cuni.amis.pogamut.base3d.worldview.object.Location point)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |