org.apache.commons.math3.geometry

## Interface Point<S extends Space>

- Type Parameters:
    `S` - Type of the space.
  All Superinterfaces:
    Serializable
  All Known Subinterfaces:
    Vector<S>
  All Known Implementing Classes:
    S1Point, S2Point, Vector1D, Vector2D, Vector3D

      public interface Point<S extends Space>
      extends Serializable

  This interface represents a generic geometrical point.
  Since:
    3.3
  Version:
    $Id: Point.java 1554651 2014-01-01 17:27:48Z luc $
  See Also:
    `Space`, `Vector`

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `double` | `distance(Point<S> p)` Compute the distance between the instance and another point.
    `Space` | `getSpace()` Get the space to which the point belongs.
    `boolean` | `isNaN()` Returns true if any coordinate of this point is NaN; false otherwise

- - ### Method Detail

    - #### getSpace

          Space getSpace()

      Get the space to which the point belongs.
      Returns:
        containing space

    - #### isNaN

          boolean isNaN()

      Returns true if any coordinate of this point is NaN; false otherwise
      Returns:
        true if any coordinate of this point is NaN; false otherwise

    - #### distance

          double distance(Point<S> p)

      Compute the distance between the instance and another point.
      Parameters:
        `p` - second point
      Returns:
        the distance between the instance and p

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