SuperSpaceInvaderTurboApoca.../src/utils.cpp

6 lines
196 B
C++

#include "utils.h"
bool lineCollideCheck(unsigned start1, unsigned end1, unsigned start2, unsigned end2){
return start1 < end2 != start2 < end1;
// if true, are colliding. I like truth tables
}