diff src/Grids/geometry.jl @ 2013:7895b509f9bf feature/grids/geometry_functions

Implement Grids.jacobian for Arc
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 07 May 2025 15:25:25 +0200
parents 4617e4b74b82
children 6478c29effce
line wrap: on
line diff
--- a/src/Grids/geometry.jl	Wed May 07 08:39:06 2025 +0200
+++ b/src/Grids/geometry.jl	Wed May 07 15:25:25 2025 +0200
@@ -177,8 +177,9 @@
     return A.c((1-t)*θ₀ + t*θ₁)
 end
 
-function Grids.jacobian(a::Arc, t)
-    return nothing
+function Grids.jacobian(A::Arc, t)
+    (;c, θ₀, θ₁) = A
+    return (θ₁-θ₀)*jacobian(c, t)
 end