Top Description Methods
org.apache.commons.math3.geometry

public Interface Point<S extends Space>

extends Serializable
Known Direct Subinterfaces
org.apache.commons.math3.geometry.Vector
Known Direct Implementers
org.apache.commons.math3.geometry.spherical.oned.S1Point, org.apache.commons.math3.geometry.spherical.twod.S2Point
Type Parameters
<S>
Type of the space.
Imports
java.io.Serializable

This interface represents a generic geometrical point.
Since
3.3
See Also
Space, Vector

Method Summary

Modifier and TypeMethod and Description
public double

Returns:

the distance between the instance and p
distance
(Point<S>
second point
p
)

Compute the distance between the instance and another point.

public Space

Returns:

containing space
getSpace
()

Get the space to which the point belongs.

public boolean

Returns:

true if any coordinate of this point is NaN; false otherwise
isNaN
()

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

Method Detail

distanceback to summary
public double distance(Point<S> p)

Compute the distance between the instance and another point.

Parameters
p:Point<S>

second point

Returns:double

the distance between the instance and p

getSpaceback to summary
public Space getSpace()

Get the space to which the point belongs.

Returns:Space

containing space

isNaNback to summary
public boolean isNaN()

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

Returns:boolean

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