public class RightParallelepiped extends Parallelepiped
Parallelepiped
. Both class have
be separated in order to make RightParallelepiped
case faster.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.
|
static double |
getHeightFromSurfs(double surfX,
double surfY,
double surfZ)
Get parallelepiped height (Z direction dimension).
|
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.
|
static double |
getWidthFromSurfs(double surfX,
double surfY,
double surfZ)
Get parallelepiped width (Y direction dimension).
|
int |
hashCode() |
closestPointTo, distanceTo, getCenter, getCorners, getFaces, getHeight, getIntersectionPoints, getLength, getU, getV, getW, getWidth, intersects, toString
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
getCrossSection
in class Parallelepiped
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 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 © 2018 CNES. All Rights Reserved.