Given any point on the screen (mouseX, mouseY) I need to draw a triangle bordered by a 135-degree line through that point (slope == -1) and by the left and bottom axes. In other words, anchored on the bottom-left corner of the screen (0,height-1) and on the x- and y-axis points where the 135-degree line would intersect them.
My friend Matt and I had numerous issues with our Geometry teacher a few decades ago. As did he with us.
This might be just me who doesn‘t quite understand it, but could you include an Image of how it should Look like? Better 2 images with different mouseX and y points, so that we can See what you mean better ^^