るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.106秒)

別のキーワード

  1. math log
  2. math sqrt
  3. _builtin math
  4. bigdecimal/math e
  5. bigdecimal/math cos

ライブラリ

検索結果

Vector#angle_with(v) -> Float (8.0)

v と self がなす角度を返します。

...lf がなす角度を返します。

//emlist[例][ruby]{
require 'matrix'
Vector
[1, 0].angle_with(Vector[0, 1]) # => Math::PI/2
//}

@param v このベクトルと self とがなす角度を計算します
@raise ZeroVectorError self もしくは v のどちらかが零ベクトルである場合...