Move your mouse into the triangle. Change the case via the slider.
This is a simple system for axis aligned triangle collisions both on and off scratch.