snow-math 1.3.0pre0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -95,7 +95,6 @@ class Snow::Mat3
95
95
  # multiply(scalar, output = nil) -> output or new mat3
96
96
  #
97
97
  def multiply(rhs, out = nil)
98
- raise "Invalid type for output, must be the same as RHS" if !out.nil? && !out.kind_of?(rhs.class)
99
98
  case rhs
100
99
  when ::Snow::Mat3 then multiply_mat3(rhs, out)
101
100
  when ::Snow::Vec3 then rotate_vec3(rhs, out)
@@ -105,7 +105,6 @@ class Snow::Mat4
105
105
  # multiply(vec3, output = nil) -> output or new vec3
106
106
  # multiply(scalar, output = nil) -> output or new mat4
107
107
  def multiply(rhs, out = nil)
108
- raise "Invalid type for output, must be the same as RHS" if !out.nil? && !out.kind_of?(rhs.class)
109
108
  case rhs
110
109
  when ::Snow::Mat4 then multiply_mat4(rhs, out)
111
110
  when ::Snow::Vec4 then multiply_vec4(rhs, out)
@@ -140,7 +140,7 @@ class Snow::Quat
140
140
  end
141
141
 
142
142
  # Calls #multiply(rhs, self) for scaling and Quat multiplication, otherwise
143
- # #multiply(rhs, rhs) for Vec3 multiplication.
143
+ # calls #multiply(rhs, rhs) for Vec3 multiplication.
144
144
  #
145
145
  # call-seq:
146
146
  # multiply!(quat) -> self
data/lib/snow-math.rb CHANGED
@@ -21,6 +21,6 @@ module Snow
21
21
  #
22
22
  # snow-math bindings version string.
23
23
  #
24
- SNOW_MATH_VERSION = '1.3.0pre0'
24
+ SNOW_MATH_VERSION = '1.3.0'
25
25
 
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snow-math
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0pre0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noel Raymond Cower
@@ -63,9 +63,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
63
63
  version: 2.0.0
64
64
  required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>'
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
- version: 1.3.1
68
+ version: '0'
69
69
  requirements: []
70
70
  rubyforge_project:
71
71
  rubygems_version: 2.0.3