Package com.kheops.jmap.spatial
Class PointM
java.lang.Object
com.kheops.jmap.spatial.DefaultGeometry
com.kheops.jmap.spatial.Point
com.kheops.jmap.spatial.PointM
- All Implemented Interfaces:
Geometry,PointTypeGeometry,Rotated,Serializable,Cloneable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.kheops.jmap.spatial.Point
Point.Double, Point.Float -
Field Summary
Fields inherited from class com.kheops.jmap.spatial.Point
PRECISION_DOUBLE, PRECISION_FLOATFields inherited from interface com.kheops.jmap.spatial.Geometry
GEOMETRY_ANNOTATION, GEOMETRY_COMPLEX, GEOMETRY_ELLIPSE, GEOMETRY_LINE, GEOMETRY_LINEAR_RING, GEOMETRY_LINESTRING, GEOMETRY_MULTI_ANNOTATION, GEOMETRY_MULTI_LINESTRING, GEOMETRY_MULTI_POINT, GEOMETRY_MULTI_POLYGON, GEOMETRY_POINT, GEOMETRY_POLYGON, GEOMETRY_RECTANGLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones this geometry.booleanDetermines whether two points are equal.floatgetAngle()Returns the minimum bounding rectangle of this geometry.doublegetX()Returns the X coordinate of thisPointindoubleprecision.doublegetY()Returns the Y coordinate of thisPointindoubleprecision.Point[]Returns this geometry as an array of Point.voidsetAngle(float angle) voidsetLocation(double x, double y) Sets the location of thisPointto the specifieddoublecoordinates.voidsetX(double x) Returns the X coordinate of thisPointindoubleprecision.voidsetY(double y) Sets the Y coordinate of thisPointindoubleprecision.intsizeOf()Returns an approximation in bytes of the memory used by this geometry.voidtranslate(double dx, double dy) Translates the point by the specified offsetMethods inherited from class com.kheops.jmap.spatial.Point
area, boundary, createBounds, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, getCenteredPoint, getGeometryId, getGeometryType, hashCode, length, pointIterator, setLocation, spatiallyEquals, spatiallyEquals, transform, translateMethods inherited from class com.kheops.jmap.spatial.DefaultGeometry
asText, spatiallyEqualsMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.kheops.jmap.spatial.Geometry
asText, spatiallyEquals, toString
-
Constructor Details
-
PointM
-
PointM
public PointM(double x, double y)
-
-
Method Details
-
getBounds
Description copied from interface:GeometryReturns the minimum bounding rectangle of this geometry. -
serialize
Description copied from interface:GeometryReturns this geometry as an array of Point. -
sizeOf
public int sizeOf()Description copied from interface:GeometryReturns an approximation in bytes of the memory used by this geometry. -
getX
public double getX()Description copied from class:PointReturns the X coordinate of thisPointindoubleprecision. -
getY
public double getY()Description copied from class:PointReturns the Y coordinate of thisPointindoubleprecision. -
setX
public void setX(double x) Description copied from class:PointReturns the X coordinate of thisPointindoubleprecision. -
setY
public void setY(double y) Description copied from class:PointSets the Y coordinate of thisPointindoubleprecision. -
setLocation
public void setLocation(double x, double y) Description copied from class:PointSets the location of thisPointto the specifieddoublecoordinates.- Specified by:
setLocationin classPoint- Parameters:
x- x the X coordinate of thisPoint.y- y the Y coordinate of thisPoint.
-
translate
public void translate(double dx, double dy) Description copied from class:PointTranslates the point by the specified offset -
getAngle
public float getAngle() -
setAngle
public void setAngle(float angle) -
equals
Description copied from class:PointDetermines whether two points are equal. Two instances ofPointare equal if the values of theirxandymember fields, representing their position in the coordinate space, are the same. -
clone
Description copied from class:PointClones this geometry.
-