Skip to content

Commit 12eb1c5

Browse files
committed
revert to using StaticArrays
1 parent e12e85b commit 12eb1c5

File tree

8 files changed

+140
-521
lines changed

8 files changed

+140
-521
lines changed

Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ IterTools = "c8e1da08-722c-5040-9ed9-7db0dc04731e"
1111
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1212
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
1313
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
14+
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
1415

1516
[compat]
1617
Aqua = "0.8"
@@ -21,10 +22,11 @@ GeoJSON = "0.7, 0.8"
2122
IterTools = "1.3.0"
2223
LinearAlgebra = "<0.0.1,1"
2324
OffsetArrays = "1"
25+
PrecompileTools = "1.0"
2426
Random = "<0.0.1,1"
27+
StaticArrays = "0.6, 1"
2528
Test = "<0.0.1,1"
2629
julia = "1.6"
27-
PrecompileTools = "1.0"
2830

2931
[extras]
3032
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"

src/GeometryBasics.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module GeometryBasics
22

3-
using IterTools, LinearAlgebra
3+
using IterTools, LinearAlgebra, StaticArrays
44
using GeoInterface
55
import Extents
66
using EarCut_jll

src/boundingboxes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function Rect{N1,T1}(geometry::AbstractArray{PT}) where {N1,T1,PT<:Point}
1313
vmin = Point{N2,T2}(typemax(T2))
1414
vmax = Point{N2,T2}(typemin(T2))
1515
for p in geometry
16-
vmin, vmax = minmax(p, vmin, vmax)
16+
vmin, vmax = _minmax(p, vmin, vmax)
1717
end
1818
o = vmin
1919
w = vmax - vmin

0 commit comments

Comments
 (0)