Top Description Inners Fields Constructors Methods
org.apache.commons.math3.geometry.euclidean.twod

public Class Euclidean2D

extends Object
implements Serializable, Space
Class Inheritance
All Implemented Interfaces
org.apache.commons.math3.geometry.Space, java.io.Serializable
Imports
java.io.Serializable, org.apache.commons.math3.geometry.Space, org.apache.commons.math3.geometry.euclidean.oned.Euclidean1D

This class implements a two-dimensional space.
Since
3.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
Euclidean2D.LazyHolder

Holder for the instance.

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Serializable version identifier.

Constructor Summary

AccessConstructor and Description
private
Euclidean2D()

Private constructor for the singleton.

Method Summary

Modifier and TypeMethod and Description
public int
getDimension()

Implements org.apache.commons.math3.geometry.Space.getDimension.

Get the dimension of the space.

public static Euclidean2D

Returns:

the unique instance
getInstance
()

Get the unique instance.

public Euclidean1D
getSubSpace()

Implements org.apache.commons.math3.geometry.Space.getSubSpace.

Get the n-1 dimension subspace of this space.

private Object

Returns:

the singleton instance
readResolve
()

Handle deserialization of the singleton.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Serializable version identifier.

Constructor Detail

Euclidean2Dback to summary
private Euclidean2D()

Private constructor for the singleton.

Method Detail

getDimensionback to summary
public int getDimension()

Implements org.apache.commons.math3.geometry.Space.getDimension.

Doc from org.apache.commons.math3.geometry.Space.getDimension.

Get the dimension of the space.

Returns:int

dimension of the space

getInstanceback to summary
public static Euclidean2D getInstance()

Get the unique instance.

Returns:Euclidean2D

the unique instance

getSubSpaceback to summary
public Euclidean1D getSubSpace()

Implements org.apache.commons.math3.geometry.Space.getSubSpace.

Doc from org.apache.commons.math3.geometry.Space.getSubSpace.

Get the n-1 dimension subspace of this space.

Returns:Euclidean1D

n-1 dimension sub-space of this space

readResolveback to summary
private Object readResolve()

Handle deserialization of the singleton.

Returns:Object

the singleton instance

org.apache.commons.math3.geometry.euclidean.twod back to summary

private Class Euclidean2D.LazyHolder

extends Object
Class Inheritance
  • java.lang.Object
  • org.apache.commons.math3.geometry.euclidean.twod.Euclidean2D.LazyHolder

Holder for the instance.

We use here the Initialization On Demand Holder Idiom.

Field Summary

Modifier and TypeField and Description
private static final Euclidean2D
INSTANCE

Cached field instance.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
private static final Euclidean2D INSTANCE

Cached field instance.

Constructor Detail

LazyHolderback to summary
private LazyHolder()