/** * creates a manifold with 0 points, with it's points array full of instantiated ManifoldPoints. */ public Manifold() { points = new ManifoldPoint[Settings.maxManifoldPoints]; for (int i = 0; i < Settings.maxManifoldPoints; i++) { points[i] = new ManifoldPoint(); } localNormal = new Vec2(); localPoint = new Vec2(); pointCount = 0; }
/** * copies this manifold from the given one * * @param cp manifold to copy from */ public void set(Manifold cp) { for (int i = 0; i < cp.pointCount; i++) { points[i].set(cp.points[i]); } type = cp.type; localNormal.set(cp.localNormal); localPoint.set(cp.localPoint); pointCount = cp.pointCount; } }
/** * Creates this manifold as a copy of the other * * @param other */ public Manifold(Manifold other) { points = new ManifoldPoint[Settings.maxManifoldPoints]; localNormal = other.localNormal.clone(); localPoint = other.localPoint.clone(); pointCount = other.pointCount; type = other.type; // djm: this is correct now for (int i = 0; i < Settings.maxManifoldPoints; i++) { points[i] = new ManifoldPoint(other.points[i]); } }
/** * copies this manifold from the given one * * @param cp manifold to copy from */ public void set(Manifold cp) { for (int i = 0; i < cp.pointCount; i++) { points[i].set(cp.points[i]); } type = cp.type; localNormal.set(cp.localNormal); localPoint.set(cp.localPoint); pointCount = cp.pointCount; } }
/** * creates a manifold with 0 points, with it's points array full of instantiated ManifoldPoints. */ public Manifold() { points = new ManifoldPoint[Settings.maxManifoldPoints]; for (int i = 0; i < Settings.maxManifoldPoints; i++) { points[i] = new ManifoldPoint(); } localNormal = new Vec2(); localPoint = new Vec2(); pointCount = 0; }
/** * copies this manifold from the given one * * @param cp manifold to copy from */ public void set(Manifold cp) { for (int i = 0; i < cp.pointCount; i++) { points[i].set(cp.points[i]); } type = cp.type; localNormal.set(cp.localNormal); localPoint.set(cp.localPoint); pointCount = cp.pointCount; } }
/** * Creates this manifold as a copy of the other * * @param other */ public Manifold(Manifold other) { points = new ManifoldPoint[Settings.maxManifoldPoints]; localNormal = other.localNormal.clone(); localPoint = other.localPoint.clone(); pointCount = other.pointCount; type = other.type; // djm: this is correct now for (int i = 0; i < Settings.maxManifoldPoints; i++) { points[i] = new ManifoldPoint(other.points[i]); } }
/** * copies this manifold from the given one * * @param cp manifold to copy from */ public void set(Manifold cp) { for (int i = 0; i < cp.pointCount; i++) { points[i].set(cp.points[i]); } type = cp.type; localNormal.set(cp.localNormal); localPoint.set(cp.localPoint); pointCount = cp.pointCount; } }
/** * creates a manifold with 0 points, with it's points array full of instantiated ManifoldPoints. */ public Manifold() { points = new ManifoldPoint[JBoxSettings.maxManifoldPoints]; for (int i = 0; i < JBoxSettings.maxManifoldPoints; i++) { points[i] = new ManifoldPoint(); } localNormal = new Vec2(); localPoint = new Vec2(); pointCount = 0; }
/** * copies this manifold from the given one * * @param cp manifold to copy from */ public void set(Manifold cp) { for (int i = 0; i < cp.pointCount; i++) { points[i].set(cp.points[i]); } type = cp.type; localNormal.set(cp.localNormal); localPoint.set(cp.localPoint); pointCount = cp.pointCount; } }
/** * creates a manifold with 0 points, with it's points array full of instantiated ManifoldPoints. */ public Manifold() { points = new ManifoldPoint[Settings.maxManifoldPoints]; for (int i = 0; i < Settings.maxManifoldPoints; i++) { points[i] = new ManifoldPoint(); } localNormal = new Vec2(); localPoint = new Vec2(); pointCount = 0; }
/** * creates a manifold with 0 points, with it's points array full of instantiated ManifoldPoints. */ public Manifold() { points = new ManifoldPoint[Settings.maxManifoldPoints]; for (int i = 0; i < Settings.maxManifoldPoints; i++) { points[i] = new ManifoldPoint(); } localNormal = new Vec2(); localPoint = new Vec2(); pointCount = 0; }
/** * Creates this manifold as a copy of the other * * @param other */ public Manifold(Manifold other) { points = new ManifoldPoint[JBoxSettings.maxManifoldPoints]; localNormal = other.localNormal.clone(); localPoint = other.localPoint.clone(); pointCount = other.pointCount; type = other.type; // djm: this is correct now for (int i = 0; i < JBoxSettings.maxManifoldPoints; i++) { points[i] = new ManifoldPoint(other.points[i]); } }
/** * Creates this manifold as a copy of the other * * @param other */ public Manifold(Manifold other) { points = new ManifoldPoint[Settings.maxManifoldPoints]; localNormal = other.localNormal.clone(); localPoint = other.localPoint.clone(); pointCount = other.pointCount; type = other.type; // djm: this is correct now for (int i = 0; i < Settings.maxManifoldPoints; i++) { points[i] = new ManifoldPoint(other.points[i]); } }
/** * Creates this manifold as a copy of the other * * @param other */ public Manifold(Manifold other) { points = new ManifoldPoint[Settings.maxManifoldPoints]; localNormal = other.localNormal.clone(); localPoint = other.localPoint.clone(); pointCount = other.pointCount; type = other.type; // djm: this is correct now for (int i = 0; i < Settings.maxManifoldPoints; i++) { points[i] = new ManifoldPoint(other.points[i]); } }