Skip to content

Package contains algorithms to calculate smallest enclosing sphere for a given set of points in N dimensions.

License

Notifications You must be signed in to change notification settings

JuliaFEM/BoundingSphere.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BoundingSphere

Package contains algorithms to calculate smallest enclosing sphere for a given set of points in N dimensions.

BoundingSphere.jl is a complete rewrite from scratch of Miniball.jl. See Miniball.jl issue #28.

Usage

using BoundingSphere

pts = [randn(3) for _ in 1:10]
center, radius = boundingsphere(pts)

using StaticArrays
pts = [@SVector(randn(3)) for _ in 1:10] # use static arrays for performance
algorithm = Ritter() # fast but inaccurate
center, radius = boundingsphere(pts, algorithm) # customize algorithm

About

Package contains algorithms to calculate smallest enclosing sphere for a given set of points in N dimensions.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages