// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osuTK; namespace osu.Framework.Graphics.Primitives { public class SimpleConvexPolygon : IConvexPolygon { private readonly Vector2[] vertices; public SimpleConvexPolygon(Vector2[] vertices) { this.vertices = vertices; } public ReadOnlySpan GetAxisVertices() => vertices; public ReadOnlySpan GetVertices() => vertices; public int MaxClipVertices => vertices.Length * 2; } }