pub struct Turn { /* private fields */ }Expand description
Computed turn at a waypoint: wheel-over point and where the new leg is joined.
Built by wheel_over_point.
Implementations§
Source§impl Turn
impl Turn
Sourcepub const fn waypoint_index(&self) -> u16
pub const fn waypoint_index(&self) -> u16
Waypoint index, zero-based.
Sourcepub const fn inbound(&self) -> TrueCourse
pub const fn inbound(&self) -> TrueCourse
Inbound leg course on arrival.
Sourcepub const fn outbound(&self) -> TrueCourse
pub const fn outbound(&self) -> TrueCourse
Outbound leg course on departure.
Sourcepub const fn alteration(&self) -> Angle
pub const fn alteration(&self) -> Angle
Alteration, positive to starboard.
Sourcepub const fn rate_of_turn(&self) -> RateOfTurn
pub const fn rate_of_turn(&self) -> RateOfTurn
Rate of turn at the computed speed, signed by direction.
Sourcepub const fn reach(&self) -> Distance
pub const fn reach(&self) -> Distance
Reach: straight run after wheel-over before the turn takes (advance − transfer).
Sourcepub const fn tangent(&self) -> Distance
pub const fn tangent(&self) -> Distance
Tangent length: distance before the waypoint where the arc leaves the inbound leg, and after it where it joins the outbound leg.
Sourcepub fn lead(&self) -> Distance
pub fn lead(&self) -> Distance
Wheel-over distance before the waypoint along the inbound leg: tangent + reach.
Sourcepub const fn wheel_over(&self) -> Position
pub const fn wheel_over(&self) -> Position
Wheel-over position.
Sourcepub const fn end_of_turn(&self) -> Position
pub const fn end_of_turn(&self) -> Position
End of turn: where the arc joins the outbound leg.
Sourcepub fn arc_length(&self) -> Distance
pub fn arc_length(&self) -> Distance
Arc length.
Sourcepub fn distance_saved(&self) -> Distance
pub fn distance_saved(&self) -> Distance
Distance saved versus the two tangents (the cut corner), for schedule corrections.
Trait Implementations§
impl Copy for Turn
impl StructuralPartialEq for Turn
Auto Trait Implementations§
impl Freeze for Turn
impl RefUnwindSafe for Turn
impl Send for Turn
impl Sync for Turn
impl Unpin for Turn
impl UnsafeUnpin for Turn
impl UnwindSafe for Turn
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more