Mercurial > repos > public > sbplib_julia
comparison src/Grids/geometry.jl @ 2077:6797a6cb1da7 feature/grids/geometry_functions
Remove mention of parameter range for LineSegment
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Wed, 18 Feb 2026 21:25:53 +0100 |
| parents | bc09d0bfac65 |
| children |
comparison
equal
deleted
inserted
replaced
| 2073:bc09d0bfac65 | 2077:6797a6cb1da7 |
|---|---|
| 52 | 52 |
| 53 """ | 53 """ |
| 54 LineSegment(a,b) | 54 LineSegment(a,b) |
| 55 | 55 |
| 56 A line segment, as a callable object, from `a` to `b`. | 56 A line segment, as a callable object, from `a` to `b`. |
| 57 The parametrization is ``l(s) = (1-s)a + s*b`` where ``s∈(0,1)``. | 57 The parametrization is ``l(s) = (1-s)a + s*b``. |
| 58 | 58 |
| 59 # Example | 59 # Example |
| 60 ```julia-repl | 60 ```julia-repl |
| 61 julia> l = Grids.LineSegment([1,1],[2,1]) | 61 julia> l = Grids.LineSegment([1,1],[2,1]) |
| 62 Diffinitive.Grids.LineSegment{StaticArraysCore.SVector{2, Int64}}([1, 1], [2, 1]) | 62 Diffinitive.Grids.LineSegment{StaticArraysCore.SVector{2, Int64}}([1, 1], [2, 1]) |
