Skip to content

Commit

Permalink
added export function
Browse files Browse the repository at this point in the history
  • Loading branch information
fquarenghi committed Nov 23, 2023
1 parent ea35e40 commit 26332b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/LevelSets/SignedDistances.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using LinearAlgebra, GeometryBasics

export sd_dem

@inline S(x) = x == zero(x) ? oneunit(x) : sign(x)
@inline sign_triangle(p, a, b, c) = S(dot(p - a, cross(b - a, c - a)))

Check warning on line 6 in src/LevelSets/SignedDistances.jl

View check run for this annotation

Codecov / codecov/patch

src/LevelSets/SignedDistances.jl#L5-L6

Added lines #L5 - L6 were not covered by tests

Expand Down

0 comments on commit 26332b4

Please sign in to comment.