Basic HTML version of Foils prepared 13 July 98

Foil 35 RhombusTest Applet

From Java Academy II:Advanced Java NPAC/ECS Java Academy -- February to April 98. by Tom Scavo


Like SquareTest, our test applet draws an 8x8 checkerboard of rhombi
The orientation of the checkerboard depends on the angle ? and, hence, on d: rhombus = new Rhombus( 0, 0, length, alpha ); d = rhombus.getDisplacement(); h = rhombus.getHeight(); xoffset = ( d < 0 ) ? 0 : 8*d;



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Nov 28 1998