# v2d **Repository Path**: rubygems/v2d ## Basic Information - **Project Name**: v2d - **Description**: No description available - **Primary Language**: Ruby - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-10-21 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README === Usage Simply require require 'rubygems' require 'v2d' And use v1 = V2D[1.0, 2.0] # or v1 = V2D.new(1.0, 2.0) v2 = V2D[0, 0] v2.x = v1.x + 10 # v2 = V2D[11, 0] v2.y = v1.y + 10 # v2 = V2D[11, 12] (v1 + v2) == V2D[12, 14] (v1 - v2) == V2D[-10, -10] (v1 * 3) == V2D[3, 6] (v2 / 4) == V2D[2.75, 3] V2D[3, 4].abs == 5 === Tests spec v2d_spec.rb === Author Vladimir Parfinenko, write at vladimir[dot]parfinenko[at]gmail[dot]com