Git Product home page Git Product logo

Comments (5)

JMC-design avatar JMC-design commented on May 23, 2024

So I've already got a branch working with my point protocol, with all point stuff package prefixed with p: so I can just copy that over and have a slight indirection in a P: package wrapping origin, or I can just change those prefixes to origin.vec3 and it should be good to go. or maybe that should be origin.vec4 to be ready for transforms or else we cant use them as is.
I think some indirection might be nice in case there's a need to swap to another point/vector library.

from kons-9.

kaveh808 avatar kaveh808 commented on May 23, 2024

Sounds good. Let's put the wrapper around origin.vec4.

from kons-9.

JMC-design avatar JMC-design commented on May 23, 2024

sure thing, will do tomorrow morning.

from kons-9.

JMC-design avatar JMC-design commented on May 23, 2024

So this isn't quite that simple. origin, in it's being 'correct', doesn't do things like cross-products of vec4's, or if you want to scale by number it will scale w, so it's like you need some functions from vec3 some from vec4.
I remember mfiano expressing frustration over separate functions for each type, this might be why mfiano created gfxmath after this and then completely jumped ship to julia.
In general I haven't seen any visible difference between what's there, my generic point protocol, or 3d-vectors.

from kons-9.

kaveh808 avatar kaveh808 commented on May 23, 2024

In that case let's wrap around vec3. That will do us fine.

from kons-9.

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.