Skip to content

Instantly share code, notes, and snippets.

View atcarter714's full-sized avatar
⛈️
Head in the cloud ...

Aaron Carter atcarter714

⛈️
Head in the cloud ...
View GitHub Profile
@atcarter714
atcarter714 / ACMath.cs
Last active October 22, 2022 07:09
Some useful C# methods for various mathematical purposes (such as 2D/3D math and complex operations)
/// <summary>
/// Determines if a Vector2 point is within a triangle
/// </summary>
/// <param name="point">Point to check</param>
/// <param name="p0">Triangle vertex position</param>
/// <param name="p1">Triangle vertex position</param>
/// <param name="p2">Triangle vertex position</param>
/// <returns>True if point is inside triangle, otherwise false</returns>
/// <remarks>