Commit 83c39ce8 authored by ronan's avatar ronan
Browse files

Resolved getLocal(i) instead of get(i) in edges getter

parent 96d58e7f
Pipeline #2065 passed with stage
......@@ -185,13 +185,8 @@ public class Form implements Serializable, Cloneable
}
/**
* At the end of the creation of a form, you can call this function to update information
* Compute the center of this form
*/
public void endForm()
{
updateCenter();
}
public void updateCenter()
{
Vector2D newCenter = this.getCentroidWorld();
......
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.getLocal(j), A.getLocal(i));
l_vectors.add(v.getPerpendicular());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment