View Javadoc

1   package SocialSteeringsBeta;
2   
3   import javax.vecmath.Vector3d;
4   
5   
6   /**
7    *
8    * @author petr
9    * Wrapper, mainly for social steerings to hold some other information
10   * @see speed/accurancy problem
11   */
12  public class SteeringResult extends Vector3d {
13  
14      private double accurancyMultiplier;
15      
16      public SteeringResult(Vector3d force, double accurancyMPL)
17      {
18          x = force.x;
19          y = force.y;
20          z = force.z;
21          this.accurancyMultiplier = accurancyMPL;
22      }
23      public Vector3d getForce()
24      {
25          return (Vector3d)this;
26      }
27      public double getAccurancyMultiplier()
28      {
29          return this.accurancyMultiplier;
30      }
31  
32      void setMult(double d) {
33          this.accurancyMultiplier = d;
34      }
35  }