Skip to content
Snippets Groups Projects
Commit 8583f2e4 authored by Ayomide Bamidele's avatar Ayomide Bamidele
Browse files

getOrigin/getDirect now return const references. Refs: #25629

parent f2655422
No related branches found
No related tags found
No related merge requests found
......@@ -167,9 +167,9 @@ public:
/// Clear the current set of intersection results
void clearIntersectionResults();
/// Returns the starting point
const Kernel::V3D startPoint() const { return m_line.getOrigin(); }
const Kernel::V3D &startPoint() const { return m_line.getOrigin(); }
/// Returns the direction as a unit vector
const Kernel::V3D direction() const { return m_line.getDirect(); }
const Kernel::V3D &direction() const { return m_line.getDirect(); }
/// Returns an interator to the start of the set of links
LType::iterator begin() { return m_links.begin(); }
/// Returns an interator to one-past-the-end of the set of links
......
......@@ -57,10 +57,14 @@ public:
Line *clone() const;
Kernel::V3D getPoint(const double lambda) const; ///< gets the point O+lam*N
Kernel::V3D getOrigin() const { return Origin; } ///< returns the origin
Kernel::V3D getDirect() const { return Direct; } ///< returns the direction
double distance(const Kernel::V3D &) const; ///< distance from line
int isValid(const Kernel::V3D &) const; ///< Is the point on the line
const Kernel::V3D &getOrigin() const {
return Origin;
} ///< returns the origin
const Kernel::V3D &getDirect() const {
return Direct;
} ///< returns the direction
double distance(const Kernel::V3D &) const; ///< distance from line
int isValid(const Kernel::V3D &) const; ///< Is the point on the line
void print() const;
void rotate(const Kernel::Matrix<double> &);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment