Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ronan
coraMaths
Commits
83c39ce8
Commit
83c39ce8
authored
May 29, 2016
by
ronan
Browse files
Resolved getLocal(i) instead of get(i) in edges getter
parent
96d58e7f
Pipeline
#2065
passed with stage
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cora/cora-maths/1.0/cora-maths-1.0.jar
View file @
83c39ce8
No preview for this file type
src/main/java/org/cora/maths/Form.java
View file @
83c39ce8
...
...
@@ -185,13 +185,8 @@ public class Form implements Serializable, Cloneable
}
/**
*
At
the en
d of the creation of a form, you can call this function to update information
*
Compute
the
c
en
ter of this form
*/
public
void
endForm
()
{
updateCenter
();
}
public
void
updateCenter
()
{
Vector2D
newCenter
=
this
.
getCentroidWorld
();
...
...
src/main/java/org/cora/maths/collision/CollisionDetectorTools.java
View file @
83c39ce8
package
org.cora.maths.collision
;
import
java.util.ArrayList
;
import
org.cora.maths.*
;
import
org.cora.maths.Circle
;
import
org.cora.maths.FloatA
;
import
org.cora.maths.Form
;
import
org.cora.maths.Matrix2
;
import
org.cora.maths.RoundForm
;
import
org.cora.maths.Vector2D
;
import
java.util.ArrayList
;
public
class
CollisionDetectorTools
...
...
@@ -133,7 +128,7 @@ public class CollisionDetectorTools
ArrayList
<
Vector2D
>
l_vectors
=
new
ArrayList
<
Vector2D
>(
A
.
size
());
for
(
int
j
=
A
.
size
()
-
1
,
i
=
0
;
i
<
A
.
size
();
j
=
i
,
i
++)
{
Vector2D
v
=
new
Vector2D
(
A
.
get
(
j
),
A
.
get
(
i
));
Vector2D
v
=
new
Vector2D
(
A
.
get
Local
(
j
),
A
.
get
Local
(
i
));
l_vectors
.
add
(
v
.
getPerpendicular
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment