Mercurial > repos > public > sbplib_julia
comparison 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 |
comparison
equal
deleted
inserted
replaced
2012:4617e4b74b82 | 2013:7895b509f9bf |
---|---|
175 function (A::Arc)(t) | 175 function (A::Arc)(t) |
176 (; θ₀, θ₁) = A | 176 (; θ₀, θ₁) = A |
177 return A.c((1-t)*θ₀ + t*θ₁) | 177 return A.c((1-t)*θ₀ + t*θ₁) |
178 end | 178 end |
179 | 179 |
180 function Grids.jacobian(a::Arc, t) | 180 function Grids.jacobian(A::Arc, t) |
181 return nothing | 181 (;c, θ₀, θ₁) = A |
182 return (θ₁-θ₀)*jacobian(c, t) | |
182 end | 183 end |
183 | 184 |
184 | 185 |
185 """ | 186 """ |
186 arc(a,b,r) | 187 arc(a,b,r) |