rays 0.1.35 → 0.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ChangeLog.md +5 -0
- data/VERSION +1 -1
- data/include/rays/matrix.h +4 -0
- data/lib/rays/point.rb +1 -0
- data/src/matrix.cpp +12 -0
- data/test/test_point.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fea01d7f445829ba6e0adbabf088889bff2d7e9a70b4e074a8c43ba67b76893
|
4
|
+
data.tar.gz: db621dcf505e0fc0f9a0b667c36c6d3dd10de1c77c315b1a85cc6d0c524fc64f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9692697c5347e009ea5b2bb0ff461d246c49aab916d2c53a67a8ba64d5d35968d6faf1c8e5c0eb76214ac8a066581a9c136e13cc651ac62d9ad668052969a36a
|
7
|
+
data.tar.gz: d69dac60890ae4208b73d174f0c69136cac2ff14ce34402ea5f3a6500dd8f80e115d881bbe50f0d5311d2ef0ab2f3f9de382a5775a111662dfc2233239974af6
|
data/ChangeLog.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.36
|
data/include/rays/matrix.h
CHANGED
data/lib/rays/point.rb
CHANGED
data/src/matrix.cpp
CHANGED
@@ -172,5 +172,17 @@ namespace Rays
|
|
172
172
|
return to_rays(to_glm(*this) * to_glm(rhs));
|
173
173
|
}
|
174
174
|
|
175
|
+
bool
|
176
|
+
operator == (const Matrix& lhs, const Matrix& rhs)
|
177
|
+
{
|
178
|
+
return to_glm(lhs) == to_glm(rhs);
|
179
|
+
}
|
180
|
+
|
181
|
+
bool
|
182
|
+
operator != (const Matrix& lhs, const Matrix& rhs)
|
183
|
+
{
|
184
|
+
return to_glm(lhs) != to_glm(rhs);
|
185
|
+
}
|
186
|
+
|
175
187
|
|
176
188
|
}// Rays
|
data/test/test_point.rb
CHANGED
@@ -152,6 +152,11 @@ class TestPoint < Test::Unit::TestCase
|
|
152
152
|
assert o > point(0, 2, 3)
|
153
153
|
assert o > point(1, 1, 3)
|
154
154
|
assert o > point(1, 2, 2)
|
155
|
+
|
156
|
+
assert_not o == nil
|
157
|
+
assert o != nil
|
158
|
+
assert_raise {o < nil}
|
159
|
+
assert_raise {o > nil}
|
155
160
|
end
|
156
161
|
|
157
162
|
def test_negate()
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rays
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.36
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- xordog
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xot
|