Dead Reckoning
Dead Reckoning
- Subject: Dead Reckoning
- From: Michael de Haan <email@hidden>
- Date: Thu, 08 Oct 2015 08:48:47 -0700
I am trying to derive a DR fix from an initialized CLLocation.
Like this. (Playground)
let fixTime = NSDate(timeInterval: (1.00 * 60.00 * 60.00 * -1.00), sinceDate: NSDate()) // one hour ago
let fixLocation = CLLocation(coordinate: CLLocationCoordinate2DMake(boatLocation.coordinate.latitude, boatLocation.coordinate.longitude), altitude: 0.00, horizontalAccuracy: 0.00, verticalAccuracy: 0.00,course: heading, speed: knots * 0.51444445, timestamp: fixTime) // location one hour ago
I am sure there must be something like…..
let drLocation = fixLocation.advanceBySomeArbitraryTime(arbitraryTime)
But, this has eluded me so far. Any help would be welcome.
Thank you.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden