static std::pair< Double, Double > rotate2D(Double x, Double y, const Quantity &theta)
Get result of rotating a 2-D vector counterclockwise through an angle theta.
static Bool doLineSegmentsIntersect(Double a0x, Double a0y, Double a1x, Double a1y, Double b0x, Double b0y, Double b1x, Double b1y)
Determine if two coplanar line segments, a and b, intersect.