|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.math3.geometry.euclidean.threed.InfiniteEllipticCylinder
public final class InfiniteEllipticCylinder
This class is the Infinite Elliptic Cylinder class.
It represents the mathematical object by he same name
InfiniteCylinder
,
Shape
,
Serialized Form Vector3D axis = new Vector3D(0,0,1);
Vector3D axisU = new Vector3D(1,0,0);
double a = 1;
double b = 1.5;
InfiniteEllipticCylinder myCylinder = new InfiniteEllipticCylinder(axis, axisU, a, b);
Constructor Summary | |
---|---|
InfiniteEllipticCylinder(Vector3D myLocalOrigin,
Vector3D myDirection,
Vector3D myXAxis,
double myA,
double myB)
This is the constructor for the class InfiniteEllipticCylinder. |
Method Summary | |
---|---|
Vector3D[] |
closestPointTo(Line line)
Calculate closest point to a line |
Vector3D |
closestPointTo(Vector3D point)
Computes the closest point on the cone to a user specified point |
double |
distanceTo(Line line)
Get the smallest distance from the line to the cone |
double |
distanceTo(Vector3D point)
|
Vector3D |
getAffineLocalExpression(Vector3D myVector)
Express a Vector3D in spheroid local frame. |
Vector3D |
getAffineStandardExpression(Vector3D myVector)
Express a Vector3D in standard basis. |
Vector3D |
getDirection()
This method returns the main axis of the cylinder |
Vector3D[] |
getIntersectionPoints(Line line)
This methods computes and returns the intersection points between a line and the cylinder. |
Matrix3D |
getLocalBasisTransform()
This method returns the matrix of the transformation to the local basis |
Vector3D |
getOrigin()
This method returns the position of the cylinder on the Oxy plane |
double |
getSemiAxisA()
This method returns the semi axis a |
double |
getSemiAxisB()
This method returns the semi axis b |
Matrix3D |
getStandardBasisTransform()
This method returns the matrix of the transformation to the standard basis |
Vector3D |
getVectorialLocalExpression(Vector3D myVector)
Express a Vector3D in spheroid local frame. |
Vector3D |
getVectorialStandardExpression(Vector3D myVector)
Express a Vector3D in standard basis. |
boolean |
intersects(Line line)
This method returns true if the user specified line intersects the cylinder. |
String |
toString()
Get a representation for this infinite elliptic cylinder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InfiniteEllipticCylinder(Vector3D myLocalOrigin, Vector3D myDirection, Vector3D myXAxis, double myA, double myB)
myLocalOrigin
- Origin of cylinder. It is a point that belong to the cylinders' axis.myDirection
- Cylinder directionmyXAxis
- Transver axis along which semi axis is a : corrected to be orthogonal to the directionmyA
- semi axis of cylinder along myXAxismyB
- semi axis of cylinder along axis perpendicular to myXAxis and myAxis
IllegalArgumentException
- if semi-axis or norm of revolution axis is nullMethod Detail |
---|
public Vector3D getOrigin()
public Vector3D getDirection()
public double getSemiAxisA()
public Matrix3D getLocalBasisTransform()
public double getSemiAxisB()
public Matrix3D getStandardBasisTransform()
public Vector3D getVectorialLocalExpression(Vector3D myVector)
myVector
- Vector expressed in standard basis
public Vector3D getAffineStandardExpression(Vector3D myVector)
myVector
- Vector expressed in spheroid local frame
public Vector3D getAffineLocalExpression(Vector3D myVector)
myVector
- Vector expressed in standard basis
public Vector3D getVectorialStandardExpression(Vector3D myVector)
myVector
- Vector expressed in spheroid local frame
public boolean intersects(Line line)
intersects
in interface Shape
line
- User specified line
public Vector3D[] getIntersectionPoints(Line line)
getIntersectionPoints
in interface Shape
line
- The line with which the intersections are to be computed
public double distanceTo(Vector3D point)
point
- specified by user in standard basis
public Vector3D closestPointTo(Vector3D point)
point
- specified by user in standard basis
public Vector3D[] closestPointTo(Line line)
closestPointTo
in interface Shape
line
- user line
closestPointTo(Vector3D)
public double distanceTo(Line line)
distanceTo
in interface Shape
line
- the line
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |