Watch
2
0
Fork
You've already forked raylib-cs
0

Update Raylib.cs

This commit is contained in:
Alexander Baggett 2024-09-04 09:37:34 -05:00 committed by GitHub
commit db834c7d8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1294,7 +1294,7 @@ public static unsafe partial class Raylib
public unsafe static bool CheckCollisionPointPoly(Vector2 point, Vector2[] points, int pointCount) public unsafe static bool CheckCollisionPointPoly(Vector2 point, Vector2[] points, int pointCount)
{ {
var pointsPtr = (Vector2*)Unsafe.AsPointer<Vector2>(ref MemoryMarshal.GetArrayDataReference(points)); var pointsPtr = (Vector2*)Unsafe.AsPointer<Vector2>(ref MemoryMarshal.GetArrayDataReference(points));
return Raylib.CheckCollisionPointPoly(point, pointsPtr, pointCount); return CheckCollisionPointPoly(point, pointsPtr, pointCount);
} }
/// <summary> /// <summary>