Esempio n. 1
0
 /**
  * Angle (in radians) between two Pnts (treated as vectors).
  *
  * @param p the other Pnt
  * @return the angle (in radians) between the two Pnts
  */
 public float angle(Pnt p) {
   return (float) Math.acos(this.dot(p) / (this.magnitude() * p.magnitude()));
 }