MCPcopy Create free account
hub / github.com/andrewwillmott/splines-lib / Intersects

Function Intersects

Splines.cpp:46–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 inline bool Larger(const Bounds3& bb, float t) { Vec3f d = bb.mMax - bb.mMin; return d.x > t || d.y > t || d.z > t; }
45
46 inline bool Intersects(const Bounds2& a, const Bounds2& b)
47 {
48 return a.mMax.x >= b.mMin.x && a.mMin.x <= b.mMax.x
49 && a.mMax.y >= b.mMin.y && a.mMin.y <= b.mMax.y;
50 }
51 inline bool Intersects(const Bounds3& a, const Bounds3& b)
52 {
53 return a.mMax.x >= b.mMin.x && a.mMin.x <= b.mMax.x

Callers 2

FindSplineIntersectionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected