Ruby 3.4 リファレンスマニュアル

instance method Vector#zero?

zero? -> boolRuby 2.5.0 から[permalink][rdoc][edit]

self が零ベクトルであれば true を返し、そうでなければ false を返します。