public class CustomCylinder extends Object implements org.apache.commons.math3.geometry.euclidean.threed.CrossSectionProvider
| Constructor and Description |
|---|
CustomCylinder(double xAxisSurf,
double transversalSurf)
Creates a new instance of a cylinder.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
double |
getCrossSection(org.apache.commons.math3.geometry.euclidean.threed.Vector3D direction) |
double |
getEquivalentTransversalSurf()
Get equivalent transversal surface.
|
double |
getLength()
Get length corresponding to transversal surface (x length) (m).
|
static double |
getLenthFromTSurfaceAndRadius(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 |
getTSurfaceFromRadiusAndLegth(double radius,
double length)
Get transversal surface from radius and length.
|
int |
hashCode() |
String |
toString() |
public CustomCylinder(double xAxisSurf,
double transversalSurf)
xAxisSurf - surface perpendicular to X axis (m2)transversalSurf - transversal surface (m2)public double getCrossSection(org.apache.commons.math3.geometry.euclidean.threed.Vector3D direction)
throws ArithmeticException
getCrossSection in interface org.apache.commons.math3.geometry.euclidean.threed.CrossSectionProviderArithmeticException - if in direction, x, y or z are NaN or if they are all 0public double getSurfX()
public double getRadius()
public double getLength()
throws NonWidgetException
NonWidgetException - if radius is negative or zero (undetermined length)public double getEquivalentTransversalSurf()
public double getTransversalSurf()
public static double getLenthFromTSurfaceAndRadius(double tarnsversalSurf,
double radius)
throws NonWidgetException
tarnsversalSurf - cylinder transversal surfaceradius - cylinder radiusNonWidgetException - if radius is negative or zero (undetermined length)public static double getTSurfaceFromRadiusAndLegth(double radius,
double length)
radius - cylinder radiuslength - cylinder lengthCopyright © 2017. All rights reserved.