CHAPTER II.

PLANAR GRAPHS

var planarGraph = new PlanarGraph()
planarGraph.getEdgeIntersections() // EdgeIntersection

Because a planar graph's nodes are in 2D space, it's now possible for faces to be made at edge intersections.

planarGraph.generateFaces()

Planar Nodes

Adjacent nodes create a fan shape from the parent node and can be sorted clockwise.

cp.nodes[0].planarAdjacent()

Notice the angle value. Computers render +Y axis downwards. Angles increase clockwise.

Does this library use degrees or radians? I haven't made up my mind.

Planar Edges