Giter Site home page Giter Site logo

Constructors: splat, one about euclid HOT 3 CLOSED

dhardy avatar dhardy commented on June 2, 2024
Constructors: splat, one

from euclid.

Comments (3)

nical avatar nical commented on June 2, 2024

Sounds good to me. splat makes sense.

from euclid.

dhardy avatar dhardy commented on June 2, 2024

On second thoughts, there doesn't seem to be much point adding one given the strict unit system — the exception being Vector which supports dot and cross products.

I'm a bit confused why Size and Vector both exist — the differences are that Vector has a few extra methods and that Size has much longer component names. Is Size just something that exists for historical reasons?

from euclid.

nical avatar nical commented on June 2, 2024

From a pure mathematical point of view Vector and Size are more or less the same thing, but in practice when you are building a browser engine with tons of layout and graphics code, having both x/y vectors and width/height sizes to match the higher level semantics of what you are doing is very nice. That's definitely something I would not change in euclid.

from euclid.

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.