Basic HTML version of Foils prepared 13 July 98

Foil 31 Parallelogram Constructor #1

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


Assuming 0 ? ? ? ?, we have: public Parallelogram( int x, int y, int a, int b, double alpha ) { super(); // a constructor of the superclass this.addPoint( x, y ); this.addPoint( x + a, y ); // compute d and h as before... this.addPoint( x + a - d, y + h ); this.addPoint( x - d, y + h ); }



© 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