Class Euclidean2D
java.lang.Object
org.apache.commons.math3.geometry.euclidean.twod.Euclidean2D
- All Implemented Interfaces:
Serializable
,Space
This class implements a two-dimensional space.
- Since:
- 3.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
Holder for the instance. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
Serializable version identifier. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Get the dimension of the space.static Euclidean2D
Get the unique instance.Get the n-1 dimension subspace of this space.private Object
Handle deserialization of the singleton.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerializable version identifier.- See Also:
-
-
Constructor Details
-
Euclidean2D
private Euclidean2D()Private constructor for the singleton.
-
-
Method Details
-
getInstance
Get the unique instance.- Returns:
- the unique instance
-
getDimension
public int getDimension()Get the dimension of the space.- Specified by:
getDimension
in interfaceSpace
- Returns:
- dimension of the space
-
getSubSpace
Get the n-1 dimension subspace of this space.- Specified by:
getSubSpace
in interfaceSpace
- Returns:
- n-1 dimension sub-space of this space
- See Also:
-
readResolve
Handle deserialization of the singleton.- Returns:
- the singleton instance
-