るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.036秒)
トップページ > クラス:Vector[x] > 種類:インスタンスメソッド[x] > クエリ:matrix[x] > クエリ:@[x] > クエリ:angle_with[x]

別のキーワード

  1. _builtin angle
  2. matrix angle_with
  3. vector angle_with
  4. numeric angle
  5. complex angle

ライブラリ

検索結果

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

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

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

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