View Javadoc

1   package cz.cuni.amis.pogamut.udk.utils;
2   
3   import cz.cuni.amis.pogamut.base.utils.math.A;
4   import cz.cuni.amis.pogamut.base3d.worldview.object.Location;
5   import cz.cuni.amis.pogamut.base3d.worldview.object.Rotation;
6   
7   /**
8    *
9    * @author Jimmy
10   */
11  public class UTAlgebra {
12  
13      /**
14       * Returns degrees!
15       * @param agentLocation
16       * @param agentRotation
17       * @param object
18       * @return
19       */
20      public static double lineOfSightAngle(Location agentLocation, Rotation agentRotation, Location object) {
21          return A.lineOfSightAngle(agentLocation, UnrealUtils.unrealDegreeToRad(agentRotation.getRoll()), object);
22      }
23  }