What is the name of this collision detection method?

I came up with a way to do perfect collision detection for any shape, but i’m pretty sure it already exists. you put every corner of a shape into an array in either clockwise or counterclockwise order. then you give it a point to check for collisions with the shape. it uses the points given for the corners of the shape to check if the point is above or below each line using slope intercept formula. if the point is below the upper lines and above the lower lines, then it is within the shape. what is this called?