Coder Social home page Coder Social logo

Comments (7)

jkolb avatar jkolb commented on August 19, 2024 1

It is done 😀

from swiftish.

jkolb avatar jkolb commented on August 19, 2024

I've actually rewritten the library, but haven't pushed it up yet though. I took out support for everything but Float and Double to help simplify things since integers don't support trig functions and division truncates. This was a big API change though, but I feel it will make things easier in the long run and improves the time it takes to compile also.

I'll go ahead and put a new version right now.

from swiftish.

zubco avatar zubco commented on August 19, 2024

Yeah, that solves the issue. Well done. 👍
Thank you for update.

Was using:

typealias Vector2i = Vector2<Int>
typealias Vector3i = Vector3<Int>

in my little game projects, because there was all arithmetic in place already.
In a lot of cases Int is enough for express game world, render it in chunks. And Int arithmetic tend to be faster.

I suppose I will define them now as a separate types for my use cases.

from swiftish.

jkolb avatar jkolb commented on August 19, 2024

I would be OK with adding Int support back but after battling with the compiler and doing some research I have learned that Swift seems to prefer them to be separate and distinct from the Float variants.

from swiftish.

jkolb avatar jkolb commented on August 19, 2024

What operations are you using? Just +, -, *?

from swiftish.

zubco avatar zubco commented on August 19, 2024

Yes, those and Equatable conformance will do the job.
Thank you very much for interest, appreciate it. 😎

from swiftish.

zubco avatar zubco commented on August 19, 2024

Awesome 😃 👍
Thank you very much!! 🙇

from swiftish.

Related Issues (2)

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.