/** * \return A point that is on the entity. Used to check if an entity is * inside a polygon. */ RVector REntityData::getPointOnEntity() const { QList<RVector> midPoints = getMiddlePoints(); if (midPoints.size()>0) { return midPoints[0]; } QList<RVector> endPoints = getEndPoints(); if (endPoints.size()>0) { return endPoints[0]; } return getClosestPointOnEntity(RVector(0.0,0.0)); }
QList<RVector> RLine::getCenterPoints() const { return getMiddlePoints(); }
QList<RVector> RTriangle::getCenterPoints() const { return getMiddlePoints(); }