ShipRelativePosition Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains comparative position information between two ships, such as distance, bearing or estimated time to closest encounter.
public class ShipRelativePosition
type ShipRelativePosition = class
Public Class ShipRelativePosition
- Inheritance
-
ShipRelativePosition
Constructors
ShipRelativePosition(AisTarget, AisTarget, Length, Angle, AisSafetyState, DateTimeOffset) |
Relative position instance |
Properties
Bearing |
The bearing between the sips (Compass direction from From to To) |
CalculationTime |
The time this record was calculated. |
ClosestPointOfApproach |
Distance at closest point of approach |
Distance |
The current distance between the ships |
From |
Ship from which this relative position is seen (typically the own ship, but of course it's also possible to calculate possible collision vectors between arbitrary ships) |
RelativeDirection |
Direction in which the other ship is seen from From when looking to the bow. A negative value means the other ship is on the port bow, a positive value on the starboard bow. Only available if the source ship has a valid heading. |
SafetyState |
Safety state |
TimeOfClosestPointOfApproach |
Time at which the closest point will be reached |
To |
Ship to which this relative position is calculated |
Methods
TimeToClosestPointOfApproach(DateTimeOffset) |
Calculate the time of closes approach with a given "now" |