Skip to content

Commit ff3dd84

Browse files
committed
bump versions
1 parent 9b9de2e commit ff3dd84

File tree

5 files changed

+23
-6
lines changed

5 files changed

+23
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### version-0.4.2
2+
Bump versions
3+
14
### version-0.4.1
25
No particular reason but java, jruby and processing have all been updated since last release
36

calculate_torsional_angle.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
def calculate_torsional_angle(at0, at1, at2, at3)
2+
r01 = at0 - at1
3+
r32 = at3 - at2
4+
r12 = at1 - at2
5+
p = r12.cross(r01)
6+
q = r12.cross(r32)
7+
r = r12.cross(q)
8+
u = q.dot(q)
9+
v = r.dot(r)
10+
return 360.0 if (u <= 0.0 || v <= 0.0)
11+
u1 = p.dot(q) # u1 = p * q
12+
v1 = p.dot(r) # v1 = p * r
13+
u = u1 / sqrt(u)
14+
v = v1 / sqrt(v)
15+
return Math.atan2(v, u).degrees if (u.abs > 0.01 || v.abs > 0.01)
16+
360.0
17+
end

docs/Gemfile

Lines changed: 0 additions & 3 deletions
This file was deleted.

lib/geomerative/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Geomerative
2-
VERSION = '0.4.1'
2+
VERSION = '0.4.2'
33
end

pom.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project 'geomerative' do
22

33
model_version '4.0.0'
4-
id 'ruby-processing:geomerative:0.4.1'
4+
id 'ruby-processing:geomerative:0.4.2'
55
packaging 'jar'
66

77
description 'geomerative-library for JRubyArt'
@@ -28,7 +28,7 @@
2828
'polyglot.dump.pom' => 'pom.xml'
2929
)
3030

31-
jar 'org.processing:core:3.2.1'
31+
jar 'org.processing:core:3.3.0'
3232

3333
plugin( :compiler, '3.5.1',
3434
'source' => '${maven.compiler.source}',

0 commit comments

Comments
 (0)