elasticsearch-ruby
https://github.com/elastic/elasticsearch-ruby
Ruby
Ruby integrations for Elasticsearch
Vector#angle_with
Returns an angle with another vector. Result is within the [0...Math::PI]. Vector[1,0].angle_with(Vector[0,1]) # => Math::PI / 2
Edit
git clone [email protected]:elastic/elasticsearch-ruby.git
cd elasticsearch-ruby
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Vector-angle_with-for-pr
# Commit to gitgit add git commit -m "better docs for Vector#angle_with"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Vector-angle_with-for-pr
hub pull-request
# Celebrate!