lib/annlat/plot.rb
# find unit vector from p1 to p2
find unit vector from p1 to p2
find unit vector from p1 to p2
def unit_vector(p1, p2)
    x = p2[0] - p1[0]
    y = p2[1] - p1[1]
    normalize_vector([x,y])
  end
def unit_vector ( p1 , p2 ) x = p2 [ 0 ] - p1 [ 0 ] y = p2 [ 1 ] - p1 [ 1 ] normalize_vector ( [ x , y ] ) end
find unit vector from p1 to p2
find unit vector from p1 to p2
p1
p2