Skip to content

Question around room area calculation #229

@ammanvedi

Description

@ammanvedi

graph-cycles.js line 237, can anyone help me with the significance of this line

    return (V[v2][0]  - V[v1][0]) * (V[v2][1] + V[v1][1]);

i understand we take the positions for the start aned end of an edge, and the first bracketed term i think gives the length of the edge but why do we then multiply this by the sum of the y coordinate of the start and end position ?

it is used to eliminate certain cycles from the final result but otherwise im not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions