Log In  


Simple 2D vector class and bouncing ball demo

Cart #vec_ball-0 | 2022-02-11 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA



Always believe there is a different way to figure something out, @mosm.

Cart #bouncer-0 | 2022-02-12 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Probably not as good as yours but very close and in clearly smaller coding space.


@dw817 I know, I know. My main point is the vector class, and I just thought it needs some accompanying demo. I should come up with a better demo utilizing the functionality of the class.


Well that's fine, @mosm. Sometimes I see someone do something, then look at the code, then get curious to know if I can do it - in my own uninimitable way.

I thought maybe you were getting bogged down by mathematical details which can happen to programmers sometimes.

Looking forward to seeing future carts from you.



[Please log in to post a comment]