angleTo method

double angleTo(
  1. Sp3dV2D other, {
  2. Sp3dV2D origin = const Sp3dV2D(0, 0),
})

(en)Computes and returns the angle between this vector and the specified vector. The unit of the return value is radians.

(ja)このベクトルと指定ベクトルとの間の角度を計算して返します。 戻り値の単位はラジアンです。

  • other : other vector.
  • origin : the origin.

Implementation

double angleTo(Sp3dV2D other, {Sp3dV2D origin = const Sp3dV2D(0, 0)}) {
  return angle(this, other);
}