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
Fromdouble-
The M value where the event starts.
Todouble-
The M value where it ends; if it is lower than
From, the operations treat the two as swapped. ValueT-
The attributes.
Properties
From
The M value where the event starts.
public double From { get; init; }Property Value
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
Value
The attributes.
public T Value { get; init; }Property Value
- T