-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
41 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
namespace PolyZone.Debug; | ||
using CitizenFX.Core; | ||
|
||
public class Script | ||
namespace PolyZone.Debug; | ||
|
||
public class Script : BaseScript | ||
{ | ||
|
||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
using CitizenFX.Core; | ||
using PolyZone.Shapes; | ||
using PolyZone.Shapes.Interfaces; | ||
|
||
namespace PolyZone.Extensions; | ||
|
||
public static class Vector2Extensions | ||
{ | ||
/*public static float DistanceFrom(this Vector2 vector2, in Polygon polygon) | ||
{ | ||
return vector2; | ||
}*/ | ||
public static bool IsInside(this Vector2 vector2, in ISpatial2dShape shape) => shape.Contains(vector2); | ||
public static float DistanceTo(this Vector2 vector2, in ISpatial2dShape shape) => shape.DistanceFrom(vector2); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
using CitizenFX.Core; | ||
namespace PolyZone.Shapes.Interfaces; | ||
|
||
namespace PolyZone.Shapes.Interfaces; | ||
|
||
public interface IPolygon | ||
{ | ||
bool Contains(Vector2 point); | ||
float DistanceFrom(in Vector2 point); | ||
} | ||
public interface IPolygon : ISpatial2dShape; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using CitizenFX.Core; | ||
|
||
namespace PolyZone.Shapes.Interfaces; | ||
|
||
public interface ISpatial2dShape | ||
{ | ||
bool Contains(Vector2 point); | ||
float DistanceFrom(in Vector2 point); | ||
} |