Commit ec396c22 authored by Armin Erraji's avatar Armin Erraji

Set some variables to const

parent 58bf53ca
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment