public final class Space3D extends Space
Modifier and Type | Method | Description |
---|---|---|
int |
D() |
|
static Space3D |
getInstance() |
|
double[] |
makeArrayD(double d) |
|
int[] |
makeArrayD(int i) |
|
IOrientation |
makeOrientation() |
|
RotationTensor |
makeRotationTensor() |
|
Tensor |
makeTensor() |
|
Vector |
makeVector() |
|
double |
powerD(double a) |
|
int |
powerD(int n) |
|
static double |
r2(Vector3D u1,
Vector3D u2,
Boundary b) |
Computes the square of the magnitude of the difference of two vectors, subject
to a nearest image transformation.
|
static double |
r2(Vector3D u1,
Vector3D u2,
Boundary b,
Vector3D work) |
Computes the square of the magnitude of the difference of two vectors, subject
to a nearest image transformation.
|
double |
rootD(double a) |
Returns the cube root of the given value, a^(1/D) which is a^(1/3).
|
double |
sphereArea(double r) |
The surface "area" of the "sphere" defined in the D-dimensional space.
|
double |
sphereVolume(double r) |
The "volume" of the "sphere" defined in the D-dimensional space.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getD, getInstance, makeVector, makeVector, makeVector, makeVectorArray
public static Space3D getInstance()
public final int powerD(int n)
public final double powerD(double a)
public double rootD(double a)
public int[] makeArrayD(int i)
makeArrayD
in class Space
public double[] makeArrayD(double d)
makeArrayD
in class Space
public double sphereVolume(double r)
Space
sphereVolume
in class Space
r
- the radiuspublic double sphereArea(double r)
Space
sphereArea
in class Space
r
- the sphere radiuspublic Vector makeVector()
makeVector
in class Space
public IOrientation makeOrientation()
makeOrientation
in class Space
public Tensor makeTensor()
makeTensor
in class Space
public RotationTensor makeRotationTensor()
makeRotationTensor
in class Space
public static final double r2(Vector3D u1, Vector3D u2, Boundary b)
public static final double r2(Vector3D u1, Vector3D u2, Boundary b, Vector3D work)
u1
- one of the vectors and is unchanged by the calculationu2
- the other vector and is unchanged by the calculationb
- a nearest image transformationwork
- a work vector used for the calculation.