physics
Class FormulaSolver

java.lang.Object
  extended by physics.FormulaSolver

public class FormulaSolver
extends Object

FormulaSolver.java Created: Sat Nov 20 16:51:27 2004

Version:
A class that solves the intersection points of two LineFormula
Author:

Constructor Summary
FormulaSolver(LineFormula l1, LineFormula l2)
          Creates a new FormulaSolver instance.
 
Method Summary
 double solveX()
          Solves for the X value of where the two lines intersect
 double solveY()
          Solves for the Y value of where the two lines intersect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormulaSolver

public FormulaSolver(LineFormula l1,
                     LineFormula l2)
Creates a new FormulaSolver instance.

Parameters:
l1 - a LineFormula value
l2 - a LineFormula value
Method Detail

solveY

public double solveY()
Solves for the Y value of where the two lines intersect

Returns:
a double

solveX

public double solveX()
Solves for the X value of where the two lines intersect

Returns:
a double value