// Copyright (c) 2007-2018 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using System.Collections.Generic; using OpenTK; namespace osu.Game.Rulesets.Objects { public readonly ref struct LinearApproximator { private readonly ReadOnlySpan controlPoints; public LinearApproximator(ReadOnlySpan controlPoints) { this.controlPoints = controlPoints; } public List CreateLinear() { var result = new List(controlPoints.Length); foreach (var c in controlPoints) result.Add(c); return result; } } }