コード例 #1
0
ファイル: RRayData.cpp プロジェクト: izikhuang/qcad
bool RRayData::moveReferencePoint(const RVector& referencePoint,
        const RVector& targetPoint) {
    bool ret = false;
    if (referencePoint.equalsFuzzy(basePoint)) {
        basePoint = targetPoint;
        ret = true;
    }
    if (referencePoint.equalsFuzzy(getSecondPoint())) {
        setSecondPoint(targetPoint);
        ret = true;
    }
    return ret;
}
コード例 #2
0
ファイル: line3d.cpp プロジェクト: 151706061/starviewer
Line3D::Line3D(const Point3D &firstPoint, const Point3D &secondPoint)
{
    setFirstPoint(firstPoint);
    setSecondPoint(secondPoint);
}