Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
ITAGeo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Institute of Technical Acoustics (ITA)
ITAGeo
Commits
ec396c22
Commit
ec396c22
authored
Mar 05, 2019
by
Armin Erraji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set some variables to const
parent
58bf53ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/ITAGeo/Utils.cpp
src/ITAGeo/Utils.cpp
+2
-2
No files found.
src/ITAGeo/Utils.cpp
View file @
ec396c22
...
...
@@ -560,8 +560,8 @@ bool ITAGeoUtils::IsDiffractionAperturePointInRange( const VistaVector3D& v3Star
bool
ITAGeoUtils
::
CalculateDiffractionAngle
(
const
VistaVector3D
&
v3StartPoint
,
const
VistaVector3D
&
v3AperturePoint
,
const
VistaVector3D
&
v3EndPoint
,
float
&
dAngle
)
{
VistaVector3D
v3StartToApexDir
=
(
v3AperturePoint
-
v3StartPoint
).
GetNormalized
();
VistaVector3D
v3ApexToEndDir
=
(
v3EndPoint
-
v3AperturePoint
).
GetNormalized
();
const
VistaVector3D
v3StartToApexDir
=
(
v3AperturePoint
-
v3StartPoint
).
GetNormalized
();
const
VistaVector3D
v3ApexToEndDir
=
(
v3EndPoint
-
v3AperturePoint
).
GetNormalized
();
dAngle
=
acos
(
v3StartToApexDir
*
v3ApexToEndDir
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment