public class RightCircularSurfaceCylinder extends Object implements CrossSectionProvider
Constructor and Description |
---|
RightCircularSurfaceCylinder(double xAxisSurfIn,
double transversalSurfIn)
Creates a new instance of a cylinder.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
double |
getCrossSection(Vector3D direction)
Computes the cross section from the direction
defined by a Vector3D.
|
double |
getEquivalentTransversalSurf()
Get equivalent transversal surface.
|
double |
getLength()
Get length corresponding to transversal surface (x length) (m).
|
static double |
getLengthFromTSurfaceAndRadius(double tarnsversalSurf,
double radius)
Get length from the transversal surface and radius.
|
double |
getRadius()
Get radius corresponding to perpendicular x axis surface (m).
|
double |
getSurfX()
Get surface perpendicular to X axis (m2).
|
double |
getTransversalSurf()
Get transversal surface (m2).
|
static double |
getTSurfaceFromRadiusAndLength(double radius,
double length)
Get transversal surface from radius and length.
|
int |
hashCode() |
String |
toString() |
public RightCircularSurfaceCylinder(double xAxisSurfIn, double transversalSurfIn)
xAxisSurfIn
- surface perpendicular to X axis (m2)transversalSurfIn
- transversal surface (m2)public double getCrossSection(Vector3D direction) throws ArithmeticException
getCrossSection
in interface CrossSectionProvider
direction
- the direction vectorArithmeticException
- if in direction, x, y or z are NaN or if they are all 0public double getSurfX()
public double getRadius()
public double getLength() throws IllegalArgumentException
IllegalArgumentException
- if radius is negative or zero (undetermined length)public double getEquivalentTransversalSurf()
public double getTransversalSurf()
public static double getLengthFromTSurfaceAndRadius(double tarnsversalSurf, double radius) throws IllegalArgumentException
tarnsversalSurf
- cylinder transversal surfaceradius
- cylinder radiusIllegalArgumentException
- if radius is negative or zero (undetermined length)public static double getTSurfaceFromRadiusAndLength(double radius, double length)
radius
- cylinder radiuslength
- cylinder lengthCopyright © 2019 CNES. All rights reserved.