double HPlane::intersect(LineSegmentSide const &lineSeg, int edge) { Vertex &vertex = lineSeg.vertex(edge); coord_t pointV1[2] = { vertex.origin().x, vertex.origin().y }; coord_t directionV1[2] = { d->partition.direction.x, d->partition.direction.y }; return V2d_PointLineParaDistance(pointV1, directionV1, d->para, d->length); }
/// @todo refactor away inline void interceptPartition(LineSegmentSide &seg, int edge) { hplane.intercept(seg, edge, edgeTipSet(seg.vertex(edge))); }