org.kabeja.dxf
Class DXFExtrusion

java.lang.Object
  extended by org.kabeja.dxf.DXFExtrusion

public class DXFExtrusion
extends java.lang.Object

This class implements the arbitrary axis algorithm to extract the direction x,y,z of the plane defined by the extrusion.

Author:
Field Summary
protected  Vector n
           
protected  Vector x
           
protected  Vector y
           
 
Constructor Summary
DXFExtrusion()
           
 
Method Summary
 Point extrudePoint(Point basePoint, double elevation)
           
 Vector getDirectionX()
          Calculate and returns the x direction of the plane.
 Vector getDirectionY()
          Calculate the y direction of the plane.
 Vector getDirectionZ()
           
 Vector getNormal()
          Return the normal direction of the plane.
 double getX()
           
 double getY()
           
 double getZ()
           
 void setX(double x)
          Set the x value of the extrusion direction.
 void setY(double y)
          Set the x value of the extrusion direction.
 void setZ(double z)
          Set the x value of the extrusion direction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

n

protected Vector n

x

protected Vector x

y

protected Vector y
Constructor Detail

DXFExtrusion

public DXFExtrusion()
Method Detail

getX

public double getX()
Returns:
the x value of the extrusion direction.

setX

public void setX(double x)
Set the x value of the extrusion direction.


getY

public double getY()
Returns:
the y value of the extrusion direction.

setY

public void setY(double y)
Set the x value of the extrusion direction.


getZ

public double getZ()
Returns:
the z value of the extrusion direction.

setZ

public void setZ(double z)
Set the x value of the extrusion direction.


getDirectionX

public Vector getDirectionX()
Calculate and returns the x direction of the plane.

Returns:

getDirectionY

public Vector getDirectionY()
Calculate the y direction of the plane.

Returns:
the calculate y direction

extrudePoint

public Point extrudePoint(Point basePoint,
                          double elevation)

getNormal

public Vector getNormal()
Return the normal direction of the plane.

Returns:

getDirectionZ

public Vector getDirectionZ()
Returns:
See Also:
getNormal()