-
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
16 changed files
with
71 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
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
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using CitizenFX.Core; | ||
|
||
namespace PolyZone.Shapes.Interfaces; | ||
|
||
public interface IShape2d | ||
{ | ||
/// <summary> | ||
/// Spatially tests a given <see cref="Vector2"/> position to determine if it lies within the shape | ||
/// </summary> | ||
/// <param name="point">A <see cref="Vector2"/> position</param> | ||
/// <returns>True if the <see cref="Vector2"/> position is inside the shape</returns> | ||
bool Contains(in Vector2 point); | ||
|
||
/// <summary> | ||
/// Calculates the float-accurate distance from a given <see cref="Vector2"/> position to the shape | ||
/// </summary> | ||
/// <param name="point">A <see cref="Vector2"/> position</param> | ||
/// <returns>The float-accurate distance from a <see cref="Vector2"/> to the shape</returns> | ||
float DistanceFrom(in Vector2 point); | ||
} |
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,20 @@ | ||
using CitizenFX.Core; | ||
|
||
namespace PolyZone.Shapes.Interfaces; | ||
|
||
public interface IShape3d | ||
{ | ||
/// <summary> | ||
/// Spatially tests a given <see cref="Vector3"/> position to determine if it lies within the shape | ||
/// </summary> | ||
/// <param name="point">A <see cref="Vector3"/> position</param> | ||
/// <returns>True if the <see cref="Vector3"/> position is inside the shape</returns> | ||
bool Contains(in Vector3 point); | ||
|
||
/// <summary> | ||
/// Calculates the float-accurate distance from a given <see cref="Vector3"/> position to the shape | ||
/// </summary> | ||
/// <param name="point">A <see cref="Vector3"/> position</param> | ||
/// <returns>The float-accurate distance from a <see cref="Vector3"/> to the shape</returns> | ||
float DistanceFrom(in Vector3 point); | ||
} |
This file was deleted.
Oops, something went wrong.
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