src/rasterizer.cpp
static float EdgeFunction(vec4 &v0, vec4 &v1, vec2 &p)
{
    float result = (v0.x - v1.x)*(p.y - v0.y) - (v0.y - v1.y)*(p.x - v0.x);	// Remapped because y is inverted in raster space
    return result;
}
/*  For (CCW)CounterClockWise triangle vertex winding order
    Positive result indicates that the point is to the left of the edge formed by the vector (v1-v0) where v1 and v0 are the vertices
    of the triangle.A positive result for the point and all triangle edges means that the point is within the triangle. */
For (CCW)CounterClockWise triangle vertex winding order
Positive result indicates that the point is to the left of the edge formed by the vector (v1-v0) where v1 and v0 are the vertices
of the triangle.A positive result for the point and all triangle edges means that the point is within the triangle.
For ( CCW ) CounterClockWise triangle vertex winding order Positive result indicates that the point is to the left of the edge formed by the vector ( v1 - v0 ) where v1 and v0 are the vertices of the triangle . A positive result for the point and all triangle edges means that the point is within the triangle .
static float EdgeFunction(vec4 &v0, vec4 &v1, vec2 &p)
{
    float result = (v0.x - v1.x)*(p.y - v0.y) - (v0.y - v1.y)*(p.x - v0.x);	
    return result;
}
static float EdgeFunction ( vec4 & v0 , vec4 & v1 , vec2 & p ) { float result = ( v0 . x - v1 . x ) * ( p . y - v0 . y ) - ( v0 . y - v1 . y ) * ( p . x - v0 . x ) ; return result ; }
For (CCW)CounterClockWise triangle vertex winding order
Positive result indicates that the point is to the left of the edge formed by the vector (v1-v0) where v1 and v0 are the vertices
of the triangle.A positive result for the point and all triangle edges means that the point is within the triangle.
For ( CCW ) CounterClockWise triangle vertex winding order Positive result indicates that the point is to the left of the edge formed by the vector ( v1 - v0 ) where v1 and v0 are the vertices of the triangle . A positive result for the point and all triangle edges means that the point is within the triangle .
// Remapped because y is inverted in raster space