Table of Contents

Struct LineEvent<T>

Namespace
SpatialNET
Assembly
SpatialNET.Extensions.dll

An event on a route: something that holds for a range of M values, with a value of the host's choice (ADR 0033). A speed limit from kilometre 3.0 to 5.5, a surface, a road class.

public readonly record struct LineEvent<T> : IEquatable<LineEvent<T>>

Type Parameters

T

The attributes of the event; any type.

Implements

Inherited Members

Constructors

LineEvent(double, double, T)

An event on a route: something that holds for a range of M values, with a value of the host's choice (ADR 0033). A speed limit from kilometre 3.0 to 5.5, a surface, a road class.

public LineEvent(double From, double To, T Value)

Parameters

From double

The M value where the event starts.

To double

The M value where it ends; if it is lower than From, the operations treat the two as swapped.

Value T

The attributes.

Properties

From

The M value where the event starts.

public double From { get; init; }

Property Value

double

To

The M value where it ends; if it is lower than From, the operations treat the two as swapped.

public double To { get; init; }

Property Value

double

Value

The attributes.

public T Value { get; init; }

Property Value

T