예제 #1
0
void Intersect::visit(Line_CSPtr line, Circle_CSPtr circle) {
    visit(std::make_shared<Arc>(circle->center(), circle->radius(), 0., M_PI * 2., line->layer()), geo::Vector(line->start(), line->end()));
}
예제 #2
0
파일: line.cpp 프로젝트: rvirdiz/LibreCAD_3
Line::Line(const Line_CSPtr other, bool sameID) : CADEntity(other->layer(), other->metaTypes()), Vector(other->start(), other->end()) {
    if (sameID) {
        this->setID(other->id());
    }
}