Line - one = a two = b Returns the first(beginning point of...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // Line.java Author: Lewis and Loftus // // Solution to Programming Project 7.9 //******************************************************************** import java.awt.Point; public class Line { private Point one, two; //----------------------------------------------------------------- // Sets up the line by storing the coordinates of the two ends // of the line. //----------------------------------------------------------------- public Line (Point a, Point b)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { one = a; two = b; } //-----------------------------------------------------------------// Returns the first (beginning) point of the line. //-----------------------------------------------------------------public Point getOne () { return one; } //-----------------------------------------------------------------// Returns the second (end) point of the line. //-----------------------------------------------------------------public Point getTwo () { return two; } }...
View Full Document

This note was uploaded on 05/17/2011 for the course COP 3530 taught by Professor Davis during the Spring '08 term at University of Florida.

Ask a homework question - tutors are online