QList<RVector> RRayData::getReferencePoints(RS::ProjectionRenderingHint hint) const { Q_UNUSED(hint) QList<RVector> ret; ret.append(basePoint); ret.append(getSecondPoint()); return ret; }
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; }
Point3D Line3D::getPoint(int i) const { switch (i) { case 0: return getFirstPoint(); break; case 1: return getSecondPoint(); break; default: return Point3D(); break; } }
void RRayEntity::print(QDebug dbg) const { dbg.nospace() << "RRayEntity("; REntity::print(dbg); dbg.nospace() << ", startPoint: " << getBasePoint() << ", endPoint: " << getSecondPoint() << ")"; }
RBox RXLine::getBoundingBox() const { return RBox( RVector::getMinimum(basePoint, getSecondPoint()), RVector::getMaximum(basePoint, getSecondPoint()) ); }