public class RightParallelepiped extends Object implements CrossSectionProvider, Serializable
Constructor and Description |
---|
RightParallelepiped(double surfXIn,
double surfYIn,
double surfZIn)
Creates a new instance of a parallelepiped.
|
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 |
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.
|
double |
getSurfY()
Get surface perpendicular to Y axis.
|
double |
getSurfZ()
Get surface perpendicular to Z axis.
|
double |
getWidth()
Get y direction dimension (m).
|
static double |
getWidthFromSurfs(double surfX,
double surfY,
double surfZ)
Get parallelepiped width (Y direction dimension).
|
int |
hashCode() |
public RightParallelepiped(double surfXIn, double surfYIn, double surfZIn)
surfXIn
- surface perpendicular to X axis (m2)surfYIn
- surface perpendicular to Y axis (m2)surfZIn
- surface perpendicular to Z axis (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 getSurfY()
public double getSurfZ()
public double getLength() throws IllegalArgumentException
IllegalArgumentException
- if surfX is negative or zero (undetermined Length)public double getWidth() throws IllegalArgumentException
IllegalArgumentException
- if surfZ is negative or zero (undetermined Width)public double getHeight() throws IllegalArgumentException
IllegalArgumentException
- if surfZ is negative or zero (undetermined height)public static double getLengthFromSurfs(double surfX, double surfY, double surfZ) throws IllegalArgumentException
surfX
- surface perpendicular to X axissurfY
- surface perpendicular to Y axissurfZ
- surface perpendicular to Z axisIllegalArgumentException
- if surfX is negative or zero (undetermined Length)public static double getWidthFromSurfs(double surfX, double surfY, double surfZ) throws IllegalArgumentException
surfX
- surface perpendicular to X axissurfY
- surface perpendicular to Y axissurfZ
- surface perpendicular to Z axisIllegalArgumentException
- if Z surface is negative or zero (undetermined Width)public static double getHeightFromSurfs(double surfX, double surfY, double surfZ) throws IllegalArgumentException
surfX
- surface perpendicular to X axissurfY
- surface perpendicular to Y axissurfZ
- surface perpendicular to Z axisIllegalArgumentException
- if Z surface is negative or zero (undetermined height)Copyright © 2019 CNES. All rights reserved.