Update Raylib.cs
This commit is contained in:
parent
66ecc58354
commit
8e4952c71d
1 changed files with 0 additions and 7 deletions
|
|
@ -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<Vector2>(ref MemoryMarshal.GetArrayDataReference(points));
|
||||
return CheckCollisionPointPoly(point, pointsPtr, points.Length);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Check the collision between two lines defined by two points each, returns collision point by reference
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Reference in a new issue