As a fan of geometry, I want to model a line based on points consisting of (x, y) coordinates using the cartesian system, So that I can calculate its length
ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]
gem version: 3.0.3.1
Bundler version 2.3.19
Install the gem and add to the application's Gemfile by executing:
$ bundle add geometry3
If bundler is not being used to manage dependencies, install the gem by executing:
$ gem install geometry3
To test the code, we execute:
$ bundler exec rspec spec
After checking out the repo, run bin/setup
to install dependencies. Then, run bundler exec rspec spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
The gem is available as open source under the terms of the MIT License.