org.apache.commons.math3.geometry.euclidean.twod

## Class Euclidean2D

- java.lang.Object
- - org.apache.commons.math3.geometry.euclidean.twod.Euclidean2D

- All Implemented Interfaces:
    Serializable, Space

      public class Euclidean2D
      extends Object
      implements Serializable, Space

  This class implements a two-dimensional space.
  Since:
    3.0
  Version:
    $Id: Euclidean2D.java 1562610 2014-01-29 22:17:16Z tn $
  See Also:
    Serialized Form

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getDimension()` Get the dimension of the space.
    `static Euclidean2D` | `getInstance()` Get the unique instance.
    `Euclidean1D` | `getSubSpace()` Get the n-1 dimension subspace of this space.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getInstance

          public static Euclidean2D getInstance()

      Get the unique instance.
      Returns:
        the unique instance

    - #### getDimension

          public int getDimension()

      Get the dimension of the space.
      Specified by:
        `getDimension` in interface `Space`
      Returns:
        dimension of the space

    - #### getSubSpace

          public Euclidean1D getSubSpace()

      Get the n-1 dimension subspace of this space.
      Specified by:
        `getSubSpace` in interface `Space`
      Returns:
        n-1 dimension sub-space of this space
      See Also:
        `Space.getDimension()`

Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.