More than 1 year has passed since last update.
require "matrix"

v1 = Vector[14.0, 21.0]
v2 = Vector[17.0, 17.0]
(v2 - v1).r
  # => 5.0
  # (v2 - v1).magnitude
  # (v2 - v1).norm
  # も同じ