Commit cfb3932d authored by Cédric Traizet's avatar Cédric Traizet
Browse files

PERF: copy input doubles instead of using const references

parent 9cd225f3
......@@ -55,7 +55,7 @@ public:
Vector3DType& sensorVel) const;
void LineSampleHeightToWorld(const Point2DType& imPt,
const double & heightAboveEllipsoid,
double heightAboveEllipsoid,
Point3DType& worldPt) const;
protected:
......@@ -93,12 +93,12 @@ private:
void AzimuthTimeToLine(const TimeType & azimuthTime,
double & line) const;
void SlantRangeToGroundRange(const double & slantRange,
void SlantRangeToGroundRange(double slantRange,
const TimeType & azimuthTime,
double & groundRange) const;
void ApplyCoordinateConversion(const double & in,
void ApplyCoordinateConversion(double in,
const TimeType& azimuthTime,
const std::vector<CoordinateConversionRecord> & records,
double & out) const;
......
......@@ -135,7 +135,7 @@ bool SarSensorModel::WorldToAzimuthRangeTime(const Point3DType& inGeoPoint,
}
void SarSensorModel::LineSampleHeightToWorld(const Point2DType& imPt,
const double & heightAboveEllipsoid,
double heightAboveEllipsoid,
Point3DType& worldPt) const
{
assert(m_Imd.Has(MDGeom::GCP));
......@@ -404,12 +404,12 @@ void SarSensorModel::AzimuthTimeToLine(const TimeType & azimuthTime, double & li
line = (timeSinceStart/m_SarParam.azimuthTimeInterval) + currentBurst->startLine;
}
void SarSensorModel::SlantRangeToGroundRange(const double & slantRange, const TimeType & azimuthTime, double & groundRange) const
void SarSensorModel::SlantRangeToGroundRange(double slantRange, const TimeType & azimuthTime, double & groundRange) const
{
ApplyCoordinateConversion(slantRange, azimuthTime, m_SarParam.slantRangeToGroundRangeRecords , groundRange);
}
void SarSensorModel::ApplyCoordinateConversion(const double & in,
void SarSensorModel::ApplyCoordinateConversion(double in,
const TimeType& azimuthTime,
const std::vector<CoordinateConversionRecord> & records,
double & out) const
......
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