Skip to content

Commit 10b8f34

Browse files
committed
1 parent a27be35 commit 10b8f34

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[deps]
2+
CoordinateTransformations = "150eb455-5306-5404-9cee-2592286d6298"
23
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"

docs/src/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,16 +179,16 @@ and a translation, e.g. `Translation(v) ∘ LinearMap(v)` (or any combination of
179179

180180
`AffineMap`s can be constructed to fit point pairs `from_points => to_points`:
181181

182-
```jldoctest
182+
```jldoctest; filter=[r"(2\.0|1\.9999\d+)" => "2.0", r"(0\.5|0\.49999\d+)" => "0.5", r"(0\.0|[ -]\d\.\d+e-\d\d)" => "0.0", r"(1\.0(?!0)|1\.0000\d+|0\.9999\d+)" => "1.0"]
183183
julia> from_points = [[0, 0], [1, 0], [0, 1]];
184184
185185
julia> to_points = [[1, 1], [3, 1], [1.5, 3]];
186186
187187
julia> AffineMap(from_points => to_points)
188-
AffineMap([1.9999999999999996 0.5; -5.551115123125783e-16 2.0], [0.9999999999999999, 1.0000000000000002])
188+
AffineMap([2.0 0.5; 0.0 2.0], [1.0, 1.0])
189189
```
190190

191-
The points can be supplied as a collection of vectors or as a matrix with points as columns.
191+
(You may get slightly different numerical values due to roundoff errors.) The points can be supplied as a collection of vectors or as a matrix with points as columns.
192192

193193
### Perspective transformations
194194

0 commit comments

Comments
 (0)