physics
Class LineFormula

java.lang.Object
  extended by physics.LineFormula

public class LineFormula
extends Object

LineFormula.java Created: Sat Nov 20 15:32:21 2004

Version:
A class representing a line
Author:

Constructor Summary
LineFormula(Point p, double m)
          Creates a new LineFormula instance.
 
Method Summary
 int getX0()
          getX0 Return the intial X value
 double getXCoeffcient()
          Return the number of X's
 double getXIntercept()
          Return the X-axis intercept
 int getY0()
          Return the Intial Y value
 int getYIntercept()
          Return the Y-axis intercept of this line
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineFormula

public LineFormula(Point p,
                   double m)
Creates a new LineFormula instance.

Parameters:
p - a java.awt.Point value
m - the y-intercept
Method Detail

getYIntercept

public int getYIntercept()
Return the Y-axis intercept of this line

Returns:
an int value

getXIntercept

public double getXIntercept()
Return the X-axis intercept

Returns:
a double value

getXCoeffcient

public double getXCoeffcient()
Return the number of X's

Returns:
a double value

getY0

public int getY0()
Return the Intial Y value

Returns:
an int value

getX0

public int getX0()
getX0 Return the intial X value

Returns:
an int value