Package mil.nga.sf
Class Point
- java.lang.Object
- 
- mil.nga.sf.Geometry
- 
- mil.nga.sf.Point
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class Point extends Geometry A single location in space. Each point has an X and Y coordinate. A point MAY optionally also have a Z and/or an M value.- Author:
- osbornb
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description Point()ConstructorPoint(boolean hasZ, boolean hasM, double x, double y)ConstructorPoint(double x, double y)ConstructorPoint(double x, double y, Double z)ConstructorPoint(double x, double y, Double z, Double m)ConstructorPoint(Point point)Copy Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Geometrycopy()Copy the geometrybooleanequals(Object obj)booleanequalsX(Point point)Indicates if x values are equalbooleanequalsXY(Point point)Indicates if x and y values are equalbooleanequalsY(Point point)Indicates if y values are equalDoublegetM()Get mdoublegetX()Get xdoublegetY()Get yDoublegetZ()Get zinthashCode()booleanisEmpty()Is the Geometry emptybooleanisSimple()Determine if this Geometry has no anomalous geometric points, such as self intersection or self tangencyvoidsetM(Double m)Set mvoidsetX(double x)Set xvoidsetY(double y)Set yvoidsetZ(Double z)Set z- 
Methods inherited from class mil.nga.sf.GeometryexpandEnvelope, getCentroid, getDegreesCentroid, getDimension, getEnvelope, getGeometryType, hasM, hasZ, is3D, isMeasured, setHasM, setHasZ, updateZM
 
- 
 
- 
- 
- 
Constructor Detail- 
Pointpublic Point() Constructor
 - 
Pointpublic Point(double x, double y)Constructor- Parameters:
- x- x coordinate
- y- y coordinate
 
 - 
Pointpublic Point(double x, double y, Double z)Constructor- Parameters:
- x- x coordinate
- y- y coordinate
- z- z coordinate
 
 - 
Pointpublic Point(double x, double y, Double z, Double m)Constructor- Parameters:
- x- x coordinate
- y- y coordinate
- z- z coordinate
- m- m coordinate
 
 - 
Pointpublic Point(boolean hasZ, boolean hasM, double x, double y)Constructor- Parameters:
- hasZ- has z
- hasM- has m
- x- x coordinate
- y- y coordinate
 
 - 
Pointpublic Point(Point point) Copy Constructor- Parameters:
- point- point to copy
 
 
- 
 - 
Method Detail- 
getXpublic double getX() Get x- Returns:
- x
 
 - 
setXpublic void setX(double x) Set x- Parameters:
- x- x coordinate
 
 - 
getYpublic double getY() Get y- Returns:
- y
 
 - 
setYpublic void setY(double y) Set y- Parameters:
- y- y coordinate
 
 - 
getZpublic Double getZ() Get z- Returns:
- z
 
 - 
setZpublic void setZ(Double z) Set z- Parameters:
- z- z coordinate
 
 - 
getMpublic Double getM() Get m- Returns:
- m
 
 - 
setMpublic void setM(Double m) Set m- Parameters:
- m- m coordinate
 
 - 
copypublic Geometry copy() Copy the geometry
 - 
isEmptypublic boolean isEmpty() Is the Geometry empty
 - 
isSimplepublic boolean isSimple() Determine if this Geometry has no anomalous geometric points, such as self intersection or self tangency
 - 
equalsXpublic boolean equalsX(Point point) Indicates if x values are equal- Parameters:
- point- point to compare
- Returns:
- true if x is equal
- Since:
- 2.2.1
 
 - 
equalsYpublic boolean equalsY(Point point) Indicates if y values are equal- Parameters:
- point- point to compare
- Returns:
- true if y is equal
- Since:
- 2.2.1
 
 - 
equalsXYpublic boolean equalsXY(Point point) Indicates if x and y values are equal- Parameters:
- point- point to compare
- Returns:
- true if x and y are equal
- Since:
- 2.2.1
 
 
- 
 
-