JuliaGeometry / GeometryBasics.jl

Basic Geometry Types
MIT License
165 stars 54 forks source link

Would you allow ` HyperSphere(radius::Real, D::Int)` ? #201

Open Datseris opened 1 year ago

Datseris commented 1 year ago

that would make a hypersphere of dimenions D with center the 0 vector in D dimensions? I'll do a PR if you'd allow that.

SimonDanisch commented 1 year ago

Hm, I think I'd prefer HyperSphere{D}(radius)

SimonDanisch commented 1 year ago

That would also compose nicely with the aliases for HyperSphere{D}, e.g. Circle(1), Sphere(1)