Mercurial > repos > public > sbplib_julia
comparison src/Grids/geometry.jl @ 1976:34a7e3919e9a feature/grids/geometry_functions
Implement Grids.jacobian for Circle
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Tue, 25 Feb 2025 22:48:42 +0100 |
| parents | 79adad4a15d6 |
| children | 270675bb97be |
comparison
equal
deleted
inserted
replaced
| 1975:79adad4a15d6 | 1976:34a7e3919e9a |
|---|---|
| 61 function (C::Circle)(θ) | 61 function (C::Circle)(θ) |
| 62 (;c, r) = C | 62 (;c, r) = C |
| 63 c + r*@SVector[cos(θ), sin(θ)] | 63 c + r*@SVector[cos(θ), sin(θ)] |
| 64 end | 64 end |
| 65 | 65 |
| 66 function Grids.jacobian(C::Circle, θ) | |
| 67 (;r) = C | |
| 68 r*@SVector[-sin(θ), cos(θ)] | |
| 69 end | |
| 70 | |
| 66 struct TransfiniteInterpolationSurface{T1,T2,T3,T4} | 71 struct TransfiniteInterpolationSurface{T1,T2,T3,T4} |
| 67 c₁::T1 | 72 c₁::T1 |
| 68 c₂::T2 | 73 c₂::T2 |
| 69 c₃::T3 | 74 c₃::T3 |
| 70 c₄::T4 | 75 c₄::T4 |
