Section 3

Back to the class CellClickRegionInside. Add a class method to calculate the "y" value for a given "x" value when using our "heading-up" line.

And a method for our "heading-down" line.

We can now add class methods to tell if a test point is under a specific line.


Last step is to have the 4 push region classes use these tests and the truth-table logic.




Index Page Next Page

Copyright © 2007, 2008, 2009, 2010 Stephan B Wessels    stevewessels@me.com