INNER CODE UNIT · JavaScript

scaleScale

electronicarts/pbmpm · src/main.js:497

    const scaleScale = Math.sqrt(widthScale*heightScale);

    var shapes = json.shapes;
    ui.clearShapes();

    for(var shape of shapes)
    {
        shape.position.x *= widthScale;
        shape.position.y *= heightScale;

        shape.halfSize.x *= scaleScale;
        shape.halfSize.y *= scaleScale;

        shape.radius *= scaleScale;

        ui.g_simShapes.add(shape);
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…