Skip to content

Commit e3e2017

Browse files
committed
2 parents ad9a3b9 + 55f9ae5 commit e3e2017

15 files changed

Lines changed: 460 additions & 447 deletions

File tree

lib/pbox2d/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# module to give version a namespace
22
module Pbox2d
3-
VERSION = '0.9.2'
3+
VERSION = '1.0.0'
44
end

pom.rb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
project 'pbox2d', 'https://github.com/ruby-processing/jbox2d' do
33

44
model_version '4.0.0'
5-
id 'ruby-processing:pbox2d', '0.9.22'
5+
id 'ruby-processing:pbox2d', '1.0.0'
66
packaging 'jar'
77

88
description 'jbox2d for JRubyArt'
@@ -12,7 +12,7 @@
1212
developer 'monkstone' do
1313
name 'Martin Prout'
1414
email 'mamba2928@yahoo.co.uk'
15-
roles 'developer'
15+
roles 'developer'
1616
end
1717

1818
license 'BSD-2-clause', 'http://www.opensource.org/licenses/bsd-license.php'
@@ -24,7 +24,7 @@
2424
:connection => 'scm:git:git://github.com/ruby-processing/jbox2d.git',
2525
:developer_connection => 'scm:git:git@github.com/ruby-processing/jbox2dt.git'
2626
)
27-
27+
2828
properties( 'maven.compiler.source' => '1.8',
2929
'project.build.sourceEncoding' => 'UTF-8',
3030
'maven.compiler.target' => '1.8',
@@ -33,12 +33,14 @@
3333
'jruby.api' => "http://jruby.org/apidocs/"
3434
)
3535

36-
pom 'org.jruby:jruby:9.1.5.0'
37-
jar 'org.processing:core:3.2.1'
36+
37+
pom 'org.jruby:jruby:9.1.6.0'
38+
jar 'org.processing:core:3.2.3'
39+
3840
plugin_management do
3941
plugin :resources, '2.6'
4042
plugin :dependency, '2.8'
41-
plugin(
43+
plugin(
4244
:compiler, '3.5.1',
4345
source: '${maven.compiler.source}',
4446
target: '${maven.compiler.target}'

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ DO NOT MODIFIY - GENERATED CODE
1111
<modelVersion>4.0.0</modelVersion>
1212
<groupId>ruby-processing</groupId>
1313
<artifactId>pbox2d</artifactId>
14-
<version>0.9.22</version>
14+
<version>1.0.0</version>
1515
<name>pbox2d</name>
1616
<description>jbox2d for JRubyArt</description>
1717
<url>https://github.com/ruby-processing/jbox2d</url>
@@ -56,13 +56,13 @@ DO NOT MODIFIY - GENERATED CODE
5656
<dependency>
5757
<groupId>org.jruby</groupId>
5858
<artifactId>jruby</artifactId>
59-
<version>9.1.5.0</version>
59+
<version>9.1.6.0</version>
6060
<type>pom</type>
6161
</dependency>
6262
<dependency>
6363
<groupId>org.processing</groupId>
6464
<artifactId>core</artifactId>
65-
<version>3.2.1</version>
65+
<version>3.2.3</version>
6666
</dependency>
6767
</dependencies>
6868
<build>

src/org/jbox2d/collision/AABB.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ public AABB(final AABB copy) {
6969
* @param upperVertex
7070
*/
7171
public AABB(final Vec2 lowerVertex, final Vec2 upperVertex) {
72-
this.lowerBound = lowerVertex.clone(); // clone to be safe
73-
this.upperBound = upperVertex.clone();
72+
this.lowerBound = new Vec2(lowerVertex); // clone to be safe
73+
this.upperBound = new Vec2(upperVertex);
7474
}
7575

7676
/**

src/org/jbox2d/collision/Manifold.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ public Manifold() {
8888
*/
8989
public Manifold(Manifold other) {
9090
points = new ManifoldPoint[Settings.maxManifoldPoints];
91-
localNormal = other.localNormal.clone();
92-
localPoint = other.localPoint.clone();
91+
localNormal = new Vec2(other.localNormal);
92+
localPoint = new Vec2(other.localPoint);
9393
pointCount = other.pointCount;
9494
type = other.type;
9595
// djm: this is correct now

src/org/jbox2d/collision/ManifoldPoint.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
* <ul><li>e_circles: the local center of circleB</li>
5858
* <li>e_faceA: the local center of cirlceB or the clip point of polygonB</li>
5959
* <li>e_faceB: the clip point of polygonA</li></ul>
60-
* This structure is stored across time steps, so we keep it small.<br/>
60+
* This structure is stored across time steps, so we keep it small.
6161
* Note: the impulses are used for internal caching and may not
6262
* provide reliable contact forces, especially for high speed collisions.
6363
*/
@@ -85,7 +85,7 @@ public ManifoldPoint() {
8585
* @param cp point to copy from
8686
*/
8787
public ManifoldPoint(final ManifoldPoint cp) {
88-
localPoint = cp.localPoint.clone();
88+
localPoint = new Vec2(cp.localPoint);
8989
normalImpulse = cp.normalImpulse;
9090
tangentImpulse = cp.tangentImpulse;
9191
id = new ContactID(cp.id);

src/org/jbox2d/collision/shapes/MassData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public MassData() {
8484
public MassData(MassData md) {
8585
mass = md.mass;
8686
I = md.I;
87-
center = md.center.clone();
87+
center = new Vec2(md.center);
8888
}
8989

9090
public void set(MassData md) {

src/org/jbox2d/common/Mat22.java

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,15 @@
3232
*/
3333
public class Mat22 implements Serializable {
3434

35-
private static final long serialVersionUID = 2L;
35+
private static final long serialVersionUID = -3851554186221722070L;
36+
37+
3638

3739
public final Vec2 ex, ey;
3840

3941
/**
4042
* Convert the matrix to printable format.
43+
* @return
4144
*/
4245
@Override
4346
public String toString() {
@@ -63,8 +66,8 @@ public Mat22() {
6366
* @param c2 Column 2 of matrix
6467
*/
6568
public Mat22(final Vec2 c1, final Vec2 c2) {
66-
ex = c1.clone();
67-
ey = c2.clone();
69+
ex = new Vec2(c1);
70+
ey = new Vec2(c2);
6871
}
6972

7073
/**
@@ -102,16 +105,6 @@ public final Mat22 set(final float exx, final float col2x, final float exy, fina
102105
return this;
103106
}
104107

105-
/**
106-
* Return a clone of this matrix. djm fixed double allocation
107-
*
108-
* @return
109-
*/
110-
// @Override // annotation omitted for GWT-compatibility
111-
@Override
112-
public final Mat22 clone() {
113-
return new Mat22(ex, ey);
114-
}
115108

116109
/**
117110
* Set as a matrix representing a rotation.

0 commit comments

Comments
 (0)