<commit_before>= Vector2d

Vector2d allows for easy handling of two-dimensionals coordinates and vectors.
It's very flexible, most methods accepts arguments as strings, arrays, hashes
or Vector2d objects.

== Installation

Install from RubyForge:

  sudo gem install vector2d

Install from GitHub:

  gem sources -a http://gems.github.com
  sudo gem install elektronaut-vector2d

== Usage examples

  require 'vector2d'

  # These are equal
  v = Vector2d.new(50, 70)  
  v = Vector2d.new('50x70')

  v.aspect_ratio # => 0.714285714285714
  v.length       # => 86.0232526704263

  # Calculations work as expected
  v * 2                   # => #<Vector2d:0x5d994 @y=140.0, @x=100.0>
  v + Vector2d.new(20,30) # => #<Vector2d:0x59c54 @y=100.0, @x=70.0>

  v.constrain_both(64, 64) # => #<Vector2d:0x47e28 @y=64.0, @x=45.7142857142857>

== Licence

(The MIT License)

Copyright (c) 2006-2009 <NAME>
 
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,<commit_msg>Links to API docs and source<commit_after>= Vector2d

Vector2d allows for easy handling of two-dimensionals coordinates and vectors.
It's very flexible, most methods accepts arguments as strings, arrays, hashes
or Vector2d objects.

== Installation

Install from RubyForge:

  sudo gem install vector2d

Install from GitHub:

  gem sources -a http://gems.github.com
  sudo gem install elektronaut-vector2d

== Usage examples

  require 'vector2d'

  # These are equal
  v = Vector2d.new(50, 70)  
  v = Vector2d.new('50x70')

  v.aspect_ratio # => 0.714285714285714
  v.length       # => 86.0232526704263

  # Calculations work as expected
  v * 2                   # => #<Vector2d:0x5d994 @y=140.0, @x=100.0>
  v + Vector2d.new(20,30) # => #<Vector2d:0x59c54 @y=100.0, @x=70.0>

  v.constrain_both(64, 64) # => #<Vector2d:0x47e28 @y=64.0, @x=45.7142857142857>

== API Documentation

Is available at http://vector2d.rubyforge.org/

== Source code

Is available at http://github.com/elektronaut/vector2d

== Licence

(The MIT License)

Copyright (c) 2006-2009 <NAME>
 
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
{'fraction_non_alphanumeric': 0.10337810337810338, 'fraction_numerical': 0.09523809523809523, 'mean_word_length': 3.876984126984127, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1911024', 'n_tokens_mistral': 995, 'n_tokens_neox': 831, 'n_words': 264}