java.io.Serializable
public abstract class Space
extends java.lang.Object
implements java.io.Serializable
Modifier | Constructor | Description |
---|---|---|
protected |
Space() |
Modifier and Type | Method | Description |
---|---|---|
abstract int |
D() |
|
int |
getD() |
|
static Space |
getInstance(int D) |
|
abstract double[] |
makeArrayD(double d) |
|
abstract int[] |
makeArrayD(int i) |
|
abstract IOrientation |
makeOrientation() |
|
abstract RotationTensor |
makeRotationTensor() |
|
abstract Tensor |
makeTensor() |
|
abstract Vector |
makeVector() |
|
static Vector |
makeVector(double... a) |
Deprecated.
|
static Vector |
makeVector(int D) |
Returns a Vector from the space of the given dimension.
|
static Vector |
makeVector(int... k) |
Deprecated.
|
Vector[] |
makeVectorArray(int n) |
Makes an array of Vectors.
|
abstract double |
powerD(double a) |
|
abstract int |
powerD(int a) |
|
abstract double |
rootD(double a) |
|
abstract double |
sphereArea(double r) |
The surface "area" of the "sphere" defined in the D-dimensional space.
|
abstract double |
sphereVolume(double r) |
The "volume" of the "sphere" defined in the D-dimensional space.
|
public static Space getInstance(int D)
D
- the dimension of the requested space instancejava.lang.IllegalArgumentException
- if D is not 1, 2, or 3.public abstract int D()
public int getD()
public abstract double rootD(double a)
public abstract int powerD(int a)
public abstract double powerD(double a)
public abstract Vector makeVector()
public abstract IOrientation makeOrientation()
public abstract Tensor makeTensor()
public abstract RotationTensor makeRotationTensor()
public abstract int[] makeArrayD(int i)
public abstract double[] makeArrayD(double d)
public abstract double sphereVolume(double r)
r
- the radiuspublic abstract double sphereArea(double r)
r
- the sphere radiuspublic static Vector makeVector(int D)
java.lang.IllegalArgumentException
- if D is not 1, 2, or 3.@Deprecated public static Vector makeVector(double... a)
Vector.of(double...)
java.lang.IllegalArgumentException
- if a.length is not 1, 2, or 3.@Deprecated public static Vector makeVector(int... k)
Vector.of(int...)
public Vector[] makeVectorArray(int n)
n
- number of vectors in the returned array