public class CustomParallelepiped extends Object implements org.apache.commons.math3.geometry.euclidean.threed.CrossSectionProvider, Serializable
Constructor and Description |
---|
CustomParallelepiped(double surfX,
double surfY,
double surfZ)
Creates a new instance of a parallelepiped.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
double |
getCrossSection(org.apache.commons.math3.geometry.euclidean.threed.Vector3D direction) |
double |
getHeight()
Get z direction dimension (m).
|
static double |
getHeightFromSurfs(double surfX,
double surfY,
double surfZ)
Get parallelepiped height (Z direction dimension).
|
double |
getLength()
Get x direction dimension (m).
|
static double |
getLengthFromSurfs(double surfX,
double surfY,
double surfZ)
Get parallelepiped length (X direction dimension).
|
double |
getSurfX()
Get surface perpendicular to X axis (m2).
|
double |
getSurfY()
Get surface perpendicular to Y axis (m2).
|
double |
getSurfZ()
Get surface perpendicular to Z axis (m2).
|
double |
getWidth()
Get y direction dimension (m).
|
static double |
getWidthFromSurfs(double surfX,
double surfY,
double surfZ)
Get parallelepiped width (Y direction dimension).
|
int |
hashCode() |
String |
toString() |
public CustomParallelepiped(double surfX, double surfY, double surfZ)
surfX
- surface perpendicular to X axis (m2)surfY
- surface perpendicular to Y axis (m2)surfZ
- surface perpendicular to Z axis (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.CrossSectionProvider
ArithmeticException
- if in direction, x, y or z are NaN or if they are all 0public double getSurfX()
public double getSurfY()
public double getSurfZ()
public double getLength() throws NonWidgetException
NonWidgetException
- if surfX is negative or zero (undetermined Length)public double getWidth() throws NonWidgetException
NonWidgetException
- if surfZ is negative or zero (undetermined Width)public double getHeight() throws NonWidgetException
NonWidgetException
- if surfZ is negative or zero (undetermined height)public static double getWidthFromSurfs(double surfX, double surfY, double surfZ) throws NonWidgetException
surfX
- surface perpendicular to X axis (m2)surfY
- surface perpendicular to Y axis (m2)surfZ
- surface perpendicular to Z axis (m2)NonWidgetException
- if surfZ is negative or zero (undetermined Width)public static double getLengthFromSurfs(double surfX, double surfY, double surfZ) throws NonWidgetException
surfX
- surface perpendicular to X axis (m2)surfY
- surface perpendicular to Y axis (m2)surfZ
- surface perpendicular to Z axis (m2)NonWidgetException
- if surfX is negative or zero (undetermined Length)public static double getHeightFromSurfs(double surfX, double surfY, double surfZ) throws NonWidgetException
surfX
- surface perpendicular to X axis (m2)surfY
- surface perpendicular to Y axis (m2)surfZ
- surface perpendicular to Z axis (m2)NonWidgetException
- if surfZ is negative or zero (undetermined height)Copyright © 2017. All rights reserved.