Check if 2 line segment intersect without using colliders

I am trying to figure out the logic for finding if 2 line segment intersect without using unity’s built in colliders.

The 3d math collection on the wiki has implementations for most things you need