Manifold.copy constructor
Manifold.copy(
- Manifold other
Creates this manifold as a copy of the other.
Implementation
Manifold.copy(Manifold other) {
localNormal.setFrom(other.localNormal);
localPoint.setFrom(other.localPoint);
type = other.type;
pointCount = other.pointCount;
// djm: this is correct now
for (var i = 0; i < settings.maxManifoldPoints; i++) {
points[i] = ManifoldPoint.copy(other.points[i]);
}
}