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, waitgetD, getInstance, makeVector, makeVector, makeVector, makeVectorArraypublic 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 Spacer - the radiuspublic double sphereArea(double r)
sphereArea in class Spacer - the sphere radiuspublic Vector makeVector()
makeVector in class Spacepublic IOrientation makeOrientation()
makeOrientation in class Spacepublic Tensor makeTensor()
makeTensor in class Spacepublic RotationTensor makeRotationTensor()
makeRotationTensor in class Spacepublic int[] makeArrayD(int i)
makeArrayD in class Spacepublic double[] makeArrayD(double d)
makeArrayD in class Spacepublic 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.