← Back to team overview

kicad-developers team mailing list archive

Re: VECTOR2I and VECTOR2D

 

The evolution from untyped variables to weakly-typed variables to strongly-typed variables to OOP techniques has never been about what is easiest for the programmer nor fastest running. It's about producing correct, reliable, maintainable software. The argument that "it'll be too slow" is almost never true and then almost always easily addressed.

On 6/22/19 3:09 AM, Greg Smith wrote:
In addition, treating points as vectors make a variety of required transformations much easier. Wrapping the two numbers in an object that disallows common transformations, calculations, and combinations seems unnecessary and will result in significantly slower code.



References