I'm building an isometric game, I want to position and sort objects in a particular way. All my entities have 3d bounds which determines their cuboid, looking my example, a different edge is used to decide if a cuboid is in front of another, depending on whether the point b2 is left or right of a2.
I have already calculated all the points a1,a2,b1,b2 which are x,y,z I think I basically need to virtually draw "aedge" and "bedge", and compare some intersection.
If b2 is right of a2 the green cuboid (b) is consider in front of the red cuboid when bline is south east of aline.
If b2 is left of a2 the green cuboid (b) is considered in front of the red cuboid when bline is south west of aline.
Please forgive my ignorance here, I'm sure there's some terminology I should have used here. I'm struggling to put down in words what it is I need.