cz.cuni.amis.pogamut.base.utils.math
Class A

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.utils.math.A

public class A
extends java.lang.Object

A for Algebra...


Field Summary
static double DEG_TO_RAD
           
static double RAD_TO_DEG
           
 
Constructor Summary
A()
           
 
Method Summary
static double deg(double rad)
           
static double distanceFromRunningVector(Location agentLocation, Velocity runningVector, Location object)
           
static double lineOfSightAngle(Location agentLocation, double agentRotationRollRad, Location object)
          Returns degrees!
static java.awt.geom.Point2D multi(java.awt.geom.Point2D p, double multi)
           
static java.awt.geom.Point2D plus(java.awt.geom.Point2D p1, java.awt.geom.Point2D p2)
           
static java.awt.geom.Point2D projection(Location location)
           
static java.awt.geom.Point2D projection(Point3d point)
           
static java.awt.geom.Point2D projection(Vector3d vector)
           
static java.awt.geom.Point2D projection(Velocity velocity)
           
static double rad(double deg)
           
static java.awt.geom.Point2D rotate(java.awt.geom.Point2D point, double rad)
           
static java.awt.geom.Point2D vectorSum(java.awt.geom.Point2D[] vectors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEG_TO_RAD

public static final double DEG_TO_RAD
See Also:
Constant Field Values

RAD_TO_DEG

public static final double RAD_TO_DEG
See Also:
Constant Field Values
Constructor Detail

A

public A()
Method Detail

projection

public static java.awt.geom.Point2D projection(Location location)

projection

public static java.awt.geom.Point2D projection(Velocity velocity)

projection

public static java.awt.geom.Point2D projection(Vector3d vector)

projection

public static java.awt.geom.Point2D projection(Point3d point)

plus

public static java.awt.geom.Point2D plus(java.awt.geom.Point2D p1,
                                         java.awt.geom.Point2D p2)

multi

public static java.awt.geom.Point2D multi(java.awt.geom.Point2D p,
                                          double multi)

rotate

public static java.awt.geom.Point2D rotate(java.awt.geom.Point2D point,
                                           double rad)

deg

public static double deg(double rad)

rad

public static double rad(double deg)

distanceFromRunningVector

public static double distanceFromRunningVector(Location agentLocation,
                                               Velocity runningVector,
                                               Location object)

vectorSum

public static java.awt.geom.Point2D vectorSum(java.awt.geom.Point2D[] vectors)

lineOfSightAngle

public static double lineOfSightAngle(Location agentLocation,
                                      double agentRotationRollRad,
                                      Location object)
Returns degrees!

Parameters:
agentLocation -
agentRotation - in degrees
object -
Returns: