Git Product home page Git Product logo

Comments (4)

tocsoft avatar tocsoft commented on August 25, 2024

The library already has classes/structs for Rectangle and Ellipse do we want to expand these by letting them implement IShape and push the logic down there? or should we create new classes RectangularPolygon and ElipticalPolygon which take an Rectangle and Ellipse as constructor args?

If we go for the second option the we would need/want to provide override extension methods that can take the struct versions and internally convert them to the polygon versions.

My vote would be for option 2 creating RectangularPolygon and ElipticalPolygon but just after some opinions.

from imagesharp.

dlemstra avatar dlemstra commented on August 25, 2024

My vote would also be for option 2 because we might add extra stuff that is only for drawing.

from imagesharp.

JimBobSquarePants avatar JimBobSquarePants commented on August 25, 2024

Agreed. Option 2 would be best. I'd like to keep the original rectangle as is and use it simply for expressing an area of interest. I might even drop the original Ellipse as I'm not sure it's being used anywhere.

from imagesharp.

tocsoft avatar tocsoft commented on August 25, 2024

Shape are now handled by https://github.com/SixLabors/Shapes thus new primitive shapes should be requested over there.

Additionally, Ellipse/Circle, Regular 'X' sided shapes do now exist.

from imagesharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.