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 +4 -4
- data/Gemfile +6 -0
- data/geo3d.gemspec +0 -4
- data/lib/geo3d/quaternion.rb +1 -4
- data/lib/geo3d/vector.rb +5 -5
- data/lib/geo3d/version.rb +1 -1
- metadata +1 -43
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 168db873e1f1e30d19b61b15b74c3f051510f1dc
|
4
|
+
data.tar.gz: e39f4112d0fdfb678bc576552457ca6305615cb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18b9130eb959dad67e51fb121b7b6fcaebdf035eab8aa1e5f7206a737c934c890195348b0f5ba40653f01215f6a5c91c5880a3d666b5dd384401d28afade1cc9
|
7
|
+
data.tar.gz: f583966f5afa3b9f7fef0664f8349f4dd9b98ed45383e0b0e913ddfbd6cd13d076496dc05770649c9b9f992d43650ce59062fb229be6372e55d406887b4128b9
|
data/Gemfile
CHANGED
data/geo3d.gemspec
CHANGED
@@ -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
|
data/lib/geo3d/quaternion.rb
CHANGED
@@ -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
|
data/lib/geo3d/vector.rb
CHANGED
@@ -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) &&
|
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
|
data/lib/geo3d/version.rb
CHANGED
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.
|
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
|