namespace Sick.SafetyScanners.DataStructures; /// /// Contains all scan points of a single measurement /// public sealed class MeasurementData { /// /// Gets the number of beams in this measurement /// public uint NumberOfBeams { get; init; } /// /// Gets all scan points /// public IReadOnlyList ScanPoints { get; init; } /// /// Gets whether measurement data is empty (not enabled) /// public bool IsEmpty { get; init; } public MeasurementData(uint numberOfBeams, IReadOnlyList scanPoints, bool isEmpty = false) { NumberOfBeams = numberOfBeams; ScanPoints = scanPoints ?? Array.Empty(); IsEmpty = isEmpty; } }