Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeingold committed Dec 2, 2024
1 parent 8a8f892 commit 6743a04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/specializations/Ray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ end
################################################################################

# Map argument domain from [0, 1] to [0, ∞) for (::Ray)(t)
# f(t) = t / 1 - t^2)
# f'(t) = (t^2 + 1) / (1 - t^2)^2
function _parametric(ray::Meshes.Ray)
f(t) = t / (1 - t^2)
return t -> ray(f(t))
Expand Down
8 changes: 4 additions & 4 deletions src/specializations/Triangle.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
################################################################################

function integral(
f,
triangle::Meshes.Triangle,
rule::IntegrationRule;
kwargs...
f,
triangle::Meshes.Triangle,
rule::IntegrationRule;
kwargs...
)
# Generate a _ParametricGeometry whose parametric function domain spans [0,1]²
param_triangle = _ParametricGeometry(_parametric(triangle), 2)
Expand Down

0 comments on commit 6743a04

Please sign in to comment.