geometry
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.
Constructor and 説明 |
---|
J3Line(J3Vector fixedPoint,
J3UnitVector n) |
J3Line(J3Vector fixedPoint,
J3UnitVector n,
double l)
Constructor
|
Modifier and Type | Method and 説明 |
---|---|
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
|
add, decrement, getAngleInDegree, getAngleInRadian, getCrossProduct, getDotProduct, getLength, getX, getY, getZ, increment, multipleFactor, putVector, setAll, setLength, setX, setY, setZ, subtract
public J3Line(J3Vector fixedPoint, J3UnitVector n, double l)
public J3Line(J3Vector fixedPoint, J3UnitVector n)
public void configure()
public void setAxisLength(double l)
public void setR0(J3Vector r0)
public void setDirection(J3UnitVector n)
public double getAxisLength()
public J3UnitVector getDirection()
public J3Vector getR0()