Class FLine

java.lang.Object
   |
   +----FLine

class FLine
extends Object
The FLine class represents a line. Here, it is only used to call its intersect() method to compute the intersection of two lines.


Variable Index

 o a
 o b
 o c
The line is under the form ax+by=c

Constructor Index

 o FLine(FPoint, FPoint)
Creates a new FLine that goes through both a and b.
 o FLine(FPoint, FVector)
Creates a new FLine that goes through p and is supported by v.

Method Index

 o intersect(FLine)
The methode computes the intersection point of two lines.

Variables

 o a
 double a
 o b
 double b
 o c
 double c
The line is under the form ax+by=c

Constructors

 o FLine
 public FLine(FPoint p,
              FVector v)
Creates a new FLine that goes through p and is supported by v.

 o FLine
 public FLine(FPoint a,
              FPoint b)
Creates a new FLine that goes through both a and b.

Methods

 o intersect
 public FPoint intersect(FLine l)
The methode computes the intersection point of two lines. We use the JAMA matrix package (see http://math.nist.gov/javanumerics/jama/ for details).