Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
8583f2e4
Commit
8583f2e4
authored
5 years ago
by
Ayomide Bamidele
Browse files
Options
Downloads
Patches
Plain Diff
getOrigin/getDirect now return const references. Refs: #25629
parent
f2655422
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Framework/Geometry/inc/MantidGeometry/Objects/Track.h
+2
-2
2 additions, 2 deletions
Framework/Geometry/inc/MantidGeometry/Objects/Track.h
Framework/Geometry/inc/MantidGeometry/Surfaces/Line.h
+8
-4
8 additions, 4 deletions
Framework/Geometry/inc/MantidGeometry/Surfaces/Line.h
with
10 additions
and
6 deletions
Framework/Geometry/inc/MantidGeometry/Objects/Track.h
+
2
−
2
View file @
8583f2e4
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Framework/Geometry/inc/MantidGeometry/Surfaces/Line.h
+
8
−
4
View file @
8583f2e4
...
...
@@ -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
>
&
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment