MCPcopy Create free account
hub / github.com/cutdigital/mcut / Between

Function Between

source/math.cpp:757–767  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

755 }
756
757 inline bool Between(const vec2& a, const vec2& b, const vec2& c)
758 {
759 vec2 ba, ca;
760 /* If ab not vertical check betweenness on x; else on y. */
761 if (a[0] != b[0])
762 return ((a[0] <= c[0]) && (c[0] <= b[0])) || //
763 ((a[0] >= c[0]) && (c[0] >= b[0]));
764 else
765 return ((a[1] <= c[1]) && (c[1] <= b[1])) || //
766 ((a[1] >= c[1]) && (c[1] >= b[1]));
767 }
768
769 bool coplaner(const vec3& pa, const vec3& pb, const vec3& pc,
770 const vec3& pd)

Callers 1

ParallellntFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected