RectOut

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: RectOut

Post by HaWe »

I know how you see it, but if you do so and you consider it to be "correct", then you must be able to calculate with the values of your model and your model has to give mathematical correct results.

If you look at a square like
::
as it should have a length of 2 and a height of 2 (in the language of your model, 2x2):
how long is the diagonal in your model?

how long is the diagonal of a rectangle like
::::
(2x4 in your model)?
ricardocrl
Posts: 117
Joined: 27 Dec 2010, 19:27

Re: RectOut

Post by ricardocrl »

Pixels are made to be visual points. When together with other pixels, the eyes perception is the perception of a filled polygon. Then, it makes sense to see a pixel as a 1x1 square, for me. Otherwise, I wouldn't even see a single alone pixel, but I see it. :)

Anyway, if it is a matter of FW compatibility/simplicity, I don't really mind to have it like that. But I know that if I only use the function again next year, I will do the same mistake.
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: RectOut

Post by HaWe »

yes, but if you got 10 pixels side by side ( for you: a 10x1 rectangle = 10 square pixels area extension) : what makes the difference to a 10 pixels long LINE (no area extension) ?

As I said before, one may describe and define for oneself what one likes (also mathematicians don't do it other way), but it has to be mathematical coherent and consistent.
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: RectOut

Post by mattallen37 »

There is nothing different between a 10x1 rectangle, and a 10 pixel line when a pixel is the same as a 1x1 rectangle, not just a point.

We all understand your point of view, so stop trying to convince us differently. No matter how un-scientific you think our views are, just leave them to our-selves. If for no other reason, it's already like you want it to be, so let us be the ones that need to remember to convert it into the dimensions we see.
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests