Skip to content
Snippets Groups Projects
Commit 296f1804 authored by Luc Maisonobe's avatar Luc Maisonobe
Browse files

Added rate to the LineDatation interface.

parent ff85e44f
No related branches found
No related tags found
No related merge requests found
......@@ -36,4 +36,10 @@ public interface LineDatation {
*/
double getLine(AbsoluteDate date);
/** Get the rate of lines scanning.
* @param lineNumber line number
* @return rate of lines scanning (lines / seconds)
*/
double getRate(double lineNumber);
}
......@@ -214,6 +214,14 @@ public class LineSensor {
return datationModel.getLine(date);
}
/** Get the rate of lines scanning.
* @param lineNumber line number
* @return rate of lines scanning (lines / seconds)
*/
public double getRate(final double lineNumber) {
return datationModel.getRate(lineNumber);
}
/** Get the mean plane normal.
* <p>
* The normal is oriented such traversing pixels in increasing indices
......
......@@ -60,4 +60,10 @@ public class LinearLineDatation implements LineDatation {
return referenceLine + rate * date.durationFrom(referenceDate);
}
/** {@inheritDoc} */
@Override
public double getRate(final double lineNumber) {
return rate;
}
}
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