org.deegree.geometry.primitive
Interface Point

All Superinterfaces:
GeometricPrimitive, Geometry, GMLObject, Object, TypedObjectNode
All Known Implementing Classes:
DefaultPoint, PointReference

public interface Point
extends GeometricPrimitive

0-dimensional primitive.

Author:
Markus Schneider, Andreas Poth, last edited by: $Author: mschneider $

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.GeometricPrimitive
GeometricPrimitive.PrimitiveType
 
Nested classes/interfaces inherited from interface org.deegree.geometry.Geometry
Geometry.GeometryType
 
Method Summary
 double get(int dimension)
          Returns the value of the specified ordinate.
 double get0()
          Returns the value of the first ordinate.
 double get1()
          Returns the value of the second ordinate.
 double get2()
          Returns the value of the third ordinate.
 double[] getAsArray()
          Returns all ordinates.
 GeometricPrimitive.PrimitiveType getPrimitiveType()
          Must always return GeometricPrimitive.PrimitiveType.Point.
 
Methods inherited from interface org.deegree.geometry.primitive.GeometricPrimitive
getGeometryType
 
Methods inherited from interface org.deegree.geometry.Geometry
contains, crosses, equals, getBuffer, getCentroid, getConvexHull, getCoordinateDimension, getCoordinateSystem, getDifference, getDistance, getEnvelope, getId, getIntersection, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isSFSCompliant, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches
 
Methods inherited from interface org.deegree.commons.tom.gml.GMLObject
getGMLProperties
 

Method Detail

getPrimitiveType

GeometricPrimitive.PrimitiveType getPrimitiveType()
Must always return GeometricPrimitive.PrimitiveType.Point.

Specified by:
getPrimitiveType in interface GeometricPrimitive
Returns:
GeometricPrimitive.PrimitiveType.Point

get0

double get0()
Returns the value of the first ordinate.

Returns:
value of the first ordinate

get1

double get1()
Returns the value of the second ordinate.

Returns:
value of the second ordinate, or Double.NAN if the point only has one dimension

get2

double get2()
Returns the value of the third ordinate.

Returns:
value of the third ordinate, or Double.NAN if the point only has one or two dimensions

get

double get(int dimension)
Returns the value of the specified ordinate.

Parameters:
dimension - ordinate to be returned (first dimension=0)
Returns:
ordinate value of the passed dimension, or Double.NAN if dimension is greater than the number of actual dimensions

getAsArray

double[] getAsArray()
Returns all ordinates.

Returns:
all ordinates, the length of the array is equal to the number of dimensions


Copyright © 2011. All Rights Reserved.