るりまサーチ

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

別のキーワード

  1. object yield_self
  2. _builtin yield_self
  3. _builtin self
  4. tracepoint self
  5. codeobject document_self

ライブラリ

検索結果

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

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

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

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

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