るりまサーチ

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

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. t61string new
  4. matrix t
  5. fiddle align_size_t

ライブラリ

検索結果

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

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

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

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