As mentioned before in “Tilings and their duals” we can only use finite parts of tilings and we need a method to decide whether a line should be included or not. For this I have built a function “inside(Vector a,Vector b)”, where a and b are the Positions of the endpoints of the line. It returns the boolean value “true” if the line has some points inside the rectangle -xRange Setting up the coordinates – the modified code“. Then, this rectangle fits exactly the screen. For debugging, we can decrease xRange and yRange to see better what happens at the boundary. You will find the code in the next post.

This entry was posted in programming and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s