JuliaGeometry / GeometryBasics.jl

Basic Geometry Types
MIT License
164 stars 54 forks source link

Shapes without location #143

Open jtrakk opened 3 years ago

jtrakk commented 3 years ago

I want to have a shape without specifying its location. For example, to ask "what is the volume of a sphere with radius 10", regardless of its location with respect to a scene. As a workaround I could make my shapes have location Point(0,0,0), but that seems like unnecessary complication. Is this a good package for location-free shapes, or should that go in another package? If it would be another package, could they interoperate?

sjkelly commented 3 years ago

I've had good luck using CoordinateTransformations.jl with my own geometry structs.

jtrakk commented 3 years ago

I was thinking something like Circle(5) for a circle with radius 5. In fact, a circle doesn't need a radius either.