TerrainDisplay.Collision.Intersection.PointInTriangle2DXY C# (CSharp) Method

PointInTriangle2DXY() public static method

public static PointInTriangle2DXY ( Point p, System.Vector3 a, System.Vector3 b, System.Vector3 c ) : bool
p Point
a System.Vector3
b System.Vector3
c System.Vector3
return bool
        public static bool PointInTriangle2DXY(Point p, Vector3 a, Vector3 b, Vector3 c)
        {
            var a2d = new Vector2(a.X, a.Y);
            var b2d = new Vector2(b.X, b.Y);
            var c2d = new Vector2(c.X, c.Y);
            var p2d = new Vector2(p.X, p.Y);

            return PointInTriangle2D(ref p2d, ref a2d, ref b2d, ref c2d);
        }

Same methods

Intersection::PointInTriangle2DXY ( System.Vector3 p, System.Vector3 a, System.Vector3 b, System.Vector3 c ) : bool