Skip to main content

LAYLINE_LENGTH_FACTOR

Constant LAYLINE_LENGTH_FACTOR 

Source
pub const LAYLINE_LENGTH_FACTOR: f64 = 1.3;
Expand description

How far past the mark a layline ray reaches from layline_rays, as a multiple of the vessel’s own current distance to the mark – long enough that the ray always extends past wherever the vessel actually is on the chart, short enough that it does not dominate a zoomed-in view. A fixed on-screen length cannot do this: it would either vanish at ocean scale or blot out a marina at pier scale. pub so every client draws the same length rather than picking its own.