geo3d 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45adfa328b2bbe9761b54a83100d9586214ee33f
4
- data.tar.gz: dc95fd625d68ff56aad0e62b92a7e68cab274059
3
+ metadata.gz: 168db873e1f1e30d19b61b15b74c3f051510f1dc
4
+ data.tar.gz: e39f4112d0fdfb678bc576552457ca6305615cb4
5
5
  SHA512:
6
- metadata.gz: 77ada830a67ff35e709ef1efb0e3917696363c61f69d73f9fe27d8c70fd16e6c26d081ad68b8fba61835f4045e10278615b00ca7a41735358695b7a635d8b80d
7
- data.tar.gz: ef1bedd83c6438fcea8d93cccf0e46ff43fd337f5f15625c00a1bd6ae6f4a3c5c127af401d130a96819167f8e74b7c1f0d0914296a44276bdc665e6a619e0a41
6
+ metadata.gz: 18b9130eb959dad67e51fb121b7b6fcaebdf035eab8aa1e5f7206a737c934c890195348b0f5ba40653f01215f6a5c91c5880a3d666b5dd384401d28afade1cc9
7
+ data.tar.gz: f583966f5afa3b9f7fef0664f8349f4dd9b98ed45383e0b0e913ddfbd6cd13d076496dc05770649c9b9f992d43650ce59062fb229be6372e55d406887b4128b9
data/Gemfile CHANGED
@@ -2,3 +2,9 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in geo3d.gemspec
4
4
  gemspec
5
+
6
+ group :test do
7
+ gem 'ruby-opengl', '~> 0.61.0'
8
+ gem 'glu', '~> 8.3.0'
9
+ gem 'glut', '~> 8.3.0'
10
+ end
@@ -21,8 +21,4 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency "bundler", "~> 1.3"
22
22
  spec.add_development_dependency "rake"
23
23
  spec.add_development_dependency "rspec"
24
- spec.add_development_dependency "ruby-opengl"
25
- spec.add_development_dependency "glu"
26
- spec.add_development_dependency "glut"
27
-
28
24
  end
@@ -3,10 +3,7 @@ module Geo3d
3
3
  attr_reader :x, :y, :z, :w
4
4
 
5
5
  def initialize *args
6
- @x = 0.0
7
- @y = 0.0
8
- @z = 0.0
9
- @w = 0.0
6
+ @x, @y, @z, @w = 0.0, 0.0, 0.0, 0.0
10
7
  @x = args[0].to_f if args.size > 0
11
8
  @y = args[1].to_f if args.size > 1
12
9
  @z = args[2].to_f if args.size > 2
@@ -7,10 +7,7 @@ module Geo3d
7
7
  alias :d :w
8
8
 
9
9
  def initialize *args
10
- @x = 0.0
11
- @y = 0.0
12
- @z = 0.0
13
- @w = 0.0
10
+ @x, @y, @z, @w = 0.0, 0.0, 0.0, 0.0
14
11
  @x = args[0].to_f if args.size > 0
15
12
  @y = args[1].to_f if args.size > 1
16
13
  @z = args[2].to_f if args.size > 2
@@ -70,7 +67,10 @@ module Geo3d
70
67
  end
71
68
 
72
69
  def == vec
73
- Geo3d::Utils.float_cmp(x, vec.x) && Geo3d::Utils.float_cmp(y, vec.y) && Geo3d::Utils.float_cmp(z, vec.z) && Geo3d::Utils.float_cmp(w, vec.w)
70
+ Geo3d::Utils.float_cmp(x, vec.x) &&
71
+ Geo3d::Utils.float_cmp(y, vec.y) &&
72
+ Geo3d::Utils.float_cmp(z, vec.z) &&
73
+ Geo3d::Utils.float_cmp(w, vec.w)
74
74
  end
75
75
 
76
76
  def != vec
@@ -1,3 +1,3 @@
1
1
  module Geo3d
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geo3d
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Misha Conway
@@ -52,48 +52,6 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: ruby-opengl
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: glu
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: glut
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
55
  description: Library for common 3d graphics vector and matrix operations
98
56
  email:
99
57
  - MishaAConway@gmail.com