1 A red triangle is rendered on a tiled sky background using barycentric coordinates to determine pixel inclusion within the triangle.
“we can define a point as an x and y coordinates in a struct and we can then define a triangle as three points then we just need to steal some code from stack overflow that uses barycentric coordinates to determine if a given point is inside a given triangle”