processing 0.5.9 → 0.5.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +5 -0
- data/VERSION +1 -1
- data/lib/processing/vector.rb +4 -2
- 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: a6f8de5ad0bdc4fa06ebd896bb4ca1d251f110514ae5b829c54860e7cb05e760
|
4
|
+
data.tar.gz: dc34a861ca6f57b8a7dbeceba4038bf244299519476c81344d384f574584da60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f8d5a50f1986020d2d86ebcca58f35e2973fdc5d3637b8b951ec416e2ac44d8dfd11f7eb5f75e0e336625e969651ba69af1eb5eabe034a033467caba5c4a265
|
7
|
+
data.tar.gz: 4f66a4794db94888ae7a78b366373c32076ba1f5506fb6915baeb7c7afc98e07df9d1766ecd1228fb89bd979c288cc8a5fdf3ca3cd21314bb5d811abf8f75d21
|
data/ChangeLog.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.10
|
data/lib/processing/vector.rb
CHANGED
@@ -149,10 +149,12 @@ module Processing
|
|
149
149
|
|
150
150
|
# Returns x, y, z as an array
|
151
151
|
#
|
152
|
+
# @param n [Numeric] number of dimensions
|
153
|
+
#
|
152
154
|
# @return [Array] array of x, y, z
|
153
155
|
#
|
154
|
-
def array()
|
155
|
-
@point.to_a
|
156
|
+
def array(n = 3)
|
157
|
+
@point.to_a n
|
156
158
|
end
|
157
159
|
|
158
160
|
alias to_a array
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: processing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.10
|
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-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xot
|