com.thinkaurelius.titan.core.attribute

## Class Geoshape.Point

- java.lang.Object
- - com.thinkaurelius.titan.core.attribute.Geoshape.Point

- Enclosing class:
    Geoshape

      public static final class Geoshape.Point
      extends Object

  A single point representation. A point is identified by its coordinate on the earth sphere using the spherical system of latitudes and longitudes.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `double` | `distance(Geoshape.Point other)` Returns the distance to another point in kilometers
    `boolean` | `equals(Object other)`
    `float` | `getLatitude()` Latitude of this point
    `float` | `getLongitude()` Longitude of this point
    `int` | `hashCode()`
    `String` | `toString()`

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

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Method Detail

    - #### getLongitude

          public float getLongitude()

      Longitude of this point
      Returns:

    - #### getLatitude

          public float getLatitude()

      Latitude of this point
      Returns:

    - #### distance

          public double distance(Geoshape.Point other)

      Returns the distance to another point in kilometers
      Parameters:
        `other` - Point
      Returns:

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals(Object other)

      Overrides:
        `equals` in class `Object`

Copyright © 2012–2014. All rights reserved.