From 8e4952c71d027ea13c1f7be802a8455b13bebf38 Mon Sep 17 00:00:00 2001 From: Alexander Baggett Date: Wed, 4 Sep 2024 10:15:08 -0500 Subject: [PATCH] Update Raylib.cs --- Raylib-cs/interop/Raylib.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Raylib-cs/interop/Raylib.cs b/Raylib-cs/interop/Raylib.cs index b58e547..517edcf 100644 --- a/Raylib-cs/interop/Raylib.cs +++ b/Raylib-cs/interop/Raylib.cs @@ -1,7 +1,6 @@ using System; using System.Numerics; using System.Runtime.InteropServices; -using System.Runtime.CompilerServices; using System.Security; namespace Raylib_cs; @@ -1291,12 +1290,6 @@ public static unsafe partial class Raylib [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern CBool CheckCollisionPointPoly(Vector2 point, Vector2* points, int pointCount); - public static bool CheckCollisionPointPoly(Vector2 point, Vector2[] points) - { - var pointsPtr = (Vector2*)Unsafe.AsPointer(ref MemoryMarshal.GetArrayDataReference(points)); - return CheckCollisionPointPoly(point, pointsPtr, points.Length); - } - /// /// Check the collision between two lines defined by two points each, returns collision point by reference ///