public GeoLocationSensorSample(GeoLocationProvider provider, double time, GeoPoint3 location, GeoDatum geoDatum, double?bearing, double?speed, double?accuracy) { _provider = provider; _time = time; _location = location; _geoDatum = geoDatum; _bearing = bearing; _speed = speed; _accuracy = accuracy; }
public void ctor_initializes_all_fileds_correctly() { var provider = GeoLocationProvider.Network; var time = 123.0; var location = new GeoPoint3(12.0, 23.0, 34.0); var geoDatum = GeoDatum.Wgs84; var bearing = 123.0; var speed = 234.0; var accuracy = 345.0; var sample = new GeoLocationSensorSample(provider, time, location, geoDatum, bearing, speed, accuracy); Assert.That(sample.Provider, Is.EqualTo(provider)); Assert.That(sample.Time, Is.EqualTo(time)); Assert.That(sample.Location.Latitude, Is.EqualTo(12.0)); Assert.That(sample.Location.Longitude, Is.EqualTo(23.0)); Assert.That(sample.Location.Altitude, Is.EqualTo(34.0)); Assert.That(sample.GeoDatum, Is.SameAs(GeoDatum.Wgs84)); Assert.That(sample.Bearing, Is.EqualTo(bearing)); Assert.That(sample.Speed, Is.EqualTo(speed)); Assert.That(sample.Accuracy, Is.EqualTo(accuracy)); }
public SegmentKmlElement(GeoPoint3 start, GeoPoint3 end, Color4b?colour = null) { _start = start; _end = end; _colour = colour; }
public void AddSegment(GeoPoint3 start, GeoPoint3 end, Color4b?colour = null) { _elements.Add(new SegmentKmlElement(start, end, colour)); }