computeEdgeSeparation method
Implementation
void computeEdgeSeparation(EPAxis axis) {
axis.type = EPAxisType.edgeA;
axis.index = front ? 0 : 1;
axis.separation = double.maxFinite;
final nx = normal.x;
final ny = normal.y;
for (var i = 0; i < polygonB.count; ++i) {
final v = polygonB.vertices[i];
final tempX = v.x - v1.x;
final tempY = v.y - v1.y;
final s = nx * tempX + ny * tempY;
if (s < axis.separation) {
axis.separation = s;
}
}
}