Relative Content

Tag Archive for typescriptfloating-pointgeometrylineprecision

Is it correct and consistent to check two vertex points for equality?

I am writing a Typescript game where there are vertexes drawn to a canvas, and some edges coming from them. I want to determine if some of edges from different vertexes intersect. For this, I am using a generic doLinesIntersect function to determine if two edges intersect.