mageo 0.0.4 → 0.0.5
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/CHANGES +5 -1
- data/VERSION +1 -1
- data/lib/mageo/axes.rb +0 -9
- data/lib/mageo/polyhedron.rb +1 -1
- data/lib/mageo/vector3dinternal.rb +1 -1
- data/mageo.gemspec +3 -3
- data/test/test_polar2d.rb +1 -1
- data/test/test_triangle.rb +2 -2
- data/test/test_vector3d.rb +2 -2
- data/test/test_vector3dinternal.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c25145113af4bf553c36dbeae137560f45487251
|
4
|
+
data.tar.gz: 01c62982a7e20692a3ef6297ed325a5970f202c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e59acfee1e5a2741affdec6ee8ac81db8c7aebc16cd9108e985445f21261ece1d2b388dee0c65fdbb0c519c443c136b878e4394eec412175a6488ef086931ed
|
7
|
+
data.tar.gz: e15a17d70a9bf43ba50c6dff59bddb88bd65d36099a34d1bcc635fea161fd147349c07d070d178d8d248a49a60c97e10ade53d4ae9403de55b113db89ba5c4aa
|
data/CHANGES
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
data/lib/mageo/axes.rb
CHANGED
@@ -56,15 +56,6 @@ class Mageo::Axes
|
|
56
56
|
self.class.independent?(@axes)
|
57
57
|
end
|
58
58
|
|
59
|
-
def to_a
|
60
|
-
result = [
|
61
|
-
@axes[0].to_a,
|
62
|
-
@axes[1].to_a,
|
63
|
-
@axes[2].to_a,
|
64
|
-
]
|
65
|
-
return result
|
66
|
-
end
|
67
|
-
|
68
59
|
# Item access for three axes in cartesian coordinates.
|
69
60
|
# Note: []= method is not provided.
|
70
61
|
def [](index)
|
data/lib/mageo/polyhedron.rb
CHANGED
@@ -23,7 +23,7 @@ class Mageo::Vector3DInternal < Mageo::Vector3D
|
|
23
23
|
#要素数3以外では例外 Mageo::Vector3DInternalSizeError を発生。
|
24
24
|
def self.[]( *args )
|
25
25
|
raise RangeError unless args.size == 3
|
26
|
-
super
|
26
|
+
super(*args)
|
27
27
|
end
|
28
28
|
|
29
29
|
## Return order of vector. In this class, always three.
|
data/mageo.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: mageo 0.0.
|
5
|
+
# stub: mageo 0.0.5 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "mageo"
|
9
|
-
s.version = "0.0.
|
9
|
+
s.version = "0.0.5"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["ippei94da"]
|
14
|
-
s.date = "2016-
|
14
|
+
s.date = "2016-05-09"
|
15
15
|
s.description = "MAth GEOmetry library to deal with 2 and 3 dimensional spaces.\n Cartesian and internal coordinate systems can be used.\n This includes besic objects in 3 dimensional space.\n "
|
16
16
|
s.email = "ippei94da@gmail.com"
|
17
17
|
s.extra_rdoc_files = [
|
data/test/test_polar2d.rb
CHANGED
data/test/test_triangle.rb
CHANGED
@@ -167,8 +167,8 @@ class TC_Triangle < Test::Unit::TestCase
|
|
167
167
|
assert_equal(false, @t00.parallel_segment?(seg01))
|
168
168
|
|
169
169
|
# 平行ではない。
|
170
|
-
|
171
|
-
|
170
|
+
pos0 = Mageo::Vector3D[0.0,10.0, 0.0]
|
171
|
+
pos1 = Mageo::Vector3D[0.0,10.0, 2.0]
|
172
172
|
seg01 = Mageo::Segment.new(pos0, pos1)
|
173
173
|
assert_equal(false, @t00.parallel_segment?(seg01))
|
174
174
|
end
|
data/test/test_vector3d.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
require "helper"
|
4
4
|
require "matrix"
|
5
5
|
|
6
|
-
class
|
6
|
+
class TC_Array_V3D < Test::Unit::TestCase
|
7
7
|
$tolerance = 10.0**(-10)
|
8
8
|
|
9
9
|
def setup
|
@@ -20,7 +20,7 @@ class TC_Array < Test::Unit::TestCase
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
-
class
|
23
|
+
class TC_Vector_V3D < Test::Unit::TestCase
|
24
24
|
include Math
|
25
25
|
|
26
26
|
$tolerance = 10.0**(-10)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mageo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ippei94da
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-unit
|