Re: Converting decimal number to carpenter's fractions

new topic     » goto parent     » topic index » view thread      » older message » newer message
bill said...

Derek & Pete

Re negative lengths:

Vectors have magnitude and direction,
a length is a magnitude.

Agreed, if you are going to be fussy about the definitions of length and vectors and speed and velocity and so on...

The differences between these concepts are more-or-less academic to most programmers. More importantly, I can not see a reason to, to use your terminology, allow only lengths to be used by these routines, but forbid the use of vectors with them. Perhaps the programmer intended to, and actually wants to, deal with vectors even though that person calls them lengths. So what?

Of course, you can use a two element sequence to represent magnitude and direction, but if you only need two directions then I can see the elegance of using the sign bit here.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu