Table of Contents

Struct PolylineInfo

Namespace
LansMap.Core.Vector

A snapshot of one polyline's current settings and vertex count, from TryGetLine(int, out PolylineInfo).

public readonly struct PolylineInfo
Inherited Members

Constructors

PolylineInfo(float, uint, float, int, int, bool)

Creates a snapshot with every field set; new dash/orientation/corner fields default to solid/screen-locked/not flat/fully round.

public PolylineInfo(float widthPx, uint colorRgba, float dashPeriodPx, int pointCount, int maxPoints, bool isRingLine)

Parameters

widthPx float
colorRgba uint
dashPeriodPx float
pointCount int
maxPoints int
isRingLine bool

Properties

ColorRgba

Stroke color as packed RGBA.

public uint ColorRgba { get; }

Property Value

uint

CornerRadiusRatio

Corner radius of every join and cap as a fraction of half the line width; 1 (fully round) by default.

public float CornerRadiusRatio { get; }

Property Value

float

DashPeriodMercator

Dash plus gap length in normalized mercator, the same ground length at every zoom; 0 when solid or screen-dashed.

public float DashPeriodMercator { get; }

Property Value

float

DashPeriodPx

Dash plus gap length in screen px; 0 when the line is solid or ground-dashed.

public float DashPeriodPx { get; }

Property Value

float

DashPitchInvariant

True when a screen-px dash pattern ignores pitch (each segment scaled from its own on-screen length).

public bool DashPitchInvariant { get; }

Property Value

bool

Flat

True when the line lies flat in the ground plane, foreshortening with the map under pitch like a flat bulk marker.

public bool Flat { get; }

Property Value

bool

IsRingLine

public bool IsRingLine { get; }

Property Value

bool

MaxPoints

Reserved capacity plus one - the most vertices this line can hold without reallocating.

public int MaxPoints { get; }

Property Value

int

PointCount

Vertices currently drawn; 0 while the line has fewer than two.

public int PointCount { get; }

Property Value

int

WidthPx

Stroke width in screen px; 0 while hidden.

public float WidthPx { get; }

Property Value

float