标签:tin cti type rpo edit 线段 inter pointf editor
QPointF MapEditor::getIntersectPos(QPointF posA, QPointF posB, QPointF posC, QPointF posD)//返回AB与CD交点,无交点返回(0,0) { QLineF line1(posA, posB); QLineF line2(posC, posD); QPointF interPos(0,0); QLineF::IntersectType type = line1.intersect(line2, &interPos); if (type != QLineF::BoundedIntersection) interPos = QPointF(0, 0); return interPos; }
标签:tin cti type rpo edit 线段 inter pointf editor
原文地址:http://www.cnblogs.com/loki1412/p/7851135.html