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; }
Line3D::Line3D(const Point3D &firstPoint, const Point3D &secondPoint) { setFirstPoint(firstPoint); setSecondPoint(secondPoint); }