public final class Space2D extends Space
Modifier and Type | Method | Description |
---|---|---|
int |
D() |
|
static Space2D |
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(Vector2D u1,
Vector2D u2,
Boundary b) |
Computes the square of the magnitude of the difference of two vectors, subject
to a nearest image transformation.
|
static double |
r2(Vector2D u1,
Vector2D u2,
Boundary b,
Vector2D 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 square root of the given value, a^(1/D), which is a^(1/2).
|
double |
sphereArea(double r) |
Returns 2 PI r.
|
double |
sphereVolume(double r) |
Returns PI r^2.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getD, getInstance, makeVector, makeVector, makeVector, makeVectorArray
public static Space2D getInstance()
public int powerD(int n)
public double powerD(double a)
public double rootD(double a)
public double sphereVolume(double r)
sphereVolume
in class Space
r
- the radiuspublic double sphereArea(double r)
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 int[] makeArrayD(int i)
makeArrayD
in class Space
public double[] makeArrayD(double d)
makeArrayD
in class Space
public static final double r2(Vector2D u1, Vector2D u2, Boundary b)
public static final double r2(Vector2D u1, Vector2D u2, Boundary b, Vector2D 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.