Esempio n. 1
0
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;
}
Esempio n. 2
0
Line3D::Line3D(const Point3D &firstPoint, const Point3D &secondPoint)
{
    setFirstPoint(firstPoint);
    setSecondPoint(secondPoint);
}