File: PointData.java

package info (click to toggle)
gpsprune 26.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,824 kB
  • sloc: java: 52,154; sh: 25; makefile: 21; python: 15
file content (28 lines) | stat: -rw-r--r-- 837 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package tim.prune.function.comparesegments;

import tim.prune.data.DataPoint;

/**
 * Hold the information about a single point in the segment,
 * including the bearing of the track at this point, and the
 * cumulative distance from the start of the segment to here
 */
class PointData
{
	final DataPoint _point;
	final double _bearing;
	final double _distanceToHereRadians;
	final double _distanceToPrevPointRadians;
	final double _speedRadiansPerSec;


	PointData(DataPoint inPoint, double inBearing, double inDistanceToPrevPointRadians,
		double inDistanceToHereRadians, double inSpeedRadsPerSec)
	{
		_point = inPoint;
		_bearing = inBearing;
		_distanceToPrevPointRadians = inDistanceToPrevPointRadians;
		_distanceToHereRadians = inDistanceToHereRadians;
		_speedRadiansPerSec = inSpeedRadsPerSec;
	}
}