geometry
Class J3Line

java.lang.Object
  extended by geometry.J3Vector
      extended by geometry.J3Line
All Implemented Interfaces:
java.io.Serializable

public class J3Line
extends J3Vector


  This class describes line in three dimensional space.
  It provides a point vector along a given line
  represented as  r = r0 + l x n where l is the length
  long the line, n is the unit vector.
  and the relevant operations.

See Also:
Serialized Form

Constructor Summary
J3Line(J3Vector fixedPoint, J3UnitVector n)
           
J3Line(J3Vector fixedPoint, J3UnitVector n, double l)
          Constructor
 
Method Summary
 void configure()
          Configuration.
 double getAxisLength()
          return the current axis length l
 J3UnitVector getDirection()
          return the current direction
 J3Vector getR0()
          return the current passing point
 void setAxisLength(double l)
          set a new axis length l
 void setDirection(J3UnitVector n)
          set a new direction
 void setR0(J3Vector r0)
          set a new passing point
 
Methods inherited from class geometry.J3Vector
add, decrement, getAngleInDegree, getAngleInRadian, getCrossProduct, getDotProduct, getLength, getX, getY, getZ, increment, multipleFactor, putVector, setAll, setLength, setX, setY, setZ, subtract
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J3Line

public J3Line(J3Vector fixedPoint,
              J3UnitVector n,
              double l)
Constructor


J3Line

public J3Line(J3Vector fixedPoint,
              J3UnitVector n)
Method Detail

configure

public void configure()
Configuration. The point vector components defined by the gemetrical parameters are set.


setAxisLength

public void setAxisLength(double l)
set a new axis length l


setR0

public void setR0(J3Vector r0)
set a new passing point


setDirection

public void setDirection(J3UnitVector n)
set a new direction


getAxisLength

public double getAxisLength()
return the current axis length l


getDirection

public J3UnitVector getDirection()
return the current direction


getR0

public J3Vector getR0()
return the current passing point