Mercurial > repos > public > sbplib_julia
comparison src/Grids/geometry.jl @ 1974:3ed7ca1f60c4 feature/grids/geometry_functions
Implement Grids.jacobian for Line
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 25 Feb 2025 22:39:28 +0100 |
parents | 8e9575b518a1 |
children | 79adad4a15d6 |
comparison
equal
deleted
inserted
replaced
1973:8e9575b518a1 | 1974:3ed7ca1f60c4 |
---|---|
13 return Line{typeof(p)}(p,t) | 13 return Line{typeof(p)}(p,t) |
14 end | 14 end |
15 | 15 |
16 (c::Line)(s) = c.p + s*c.tangent | 16 (c::Line)(s) = c.p + s*c.tangent |
17 | 17 |
18 Grids.jacobian(l::Line, t) = l.tangent | |
18 | 19 |
19 struct LineSegment{PT} | 20 struct LineSegment{PT} |
20 a::PT | 21 a::PT |
21 b::PT | 22 b::PT |
22 | 23 |