Skip to content
Projects

Line

The equations of simgeometry.objects.line, declared on the code that implements them and checked by the tests.

Line

classsource

Represent a line geometry object.

inside
x∈S  ⟺  l≤x≤ux \in S \iff l \le x \le u
level set
ϕ(x)=∣x−l+u2∣−u−l2\phi(x) = \left|x - \tfrac{l + u}{2}\right| - \tfrac{u - l}{2}
Assumes
  • closed: both end points are inside
  • ϕ\phi is the exact signed distance, negative inside