Package geomss.geom
Interface PointGeometry<T extends PointGeometry>
-
- Type Parameters:
T- The sub-type of this PointGeometry object.
- All Superinterfaces:
java.lang.Cloneable,java.lang.Comparable,GeomElement<T>,java.io.Serializable,javolution.xml.XMLSerializable
- All Known Implementing Classes:
AbstractPointGeomList,GeomPoint,GeomPointTrans,GeomTriangle,LineSeg,LineSegment,LineSegTrans,MutablePoint,Point,PointArray,PointComponent,PointString,PointVehicle,SubrangePoint,Triangle,TriangleTrans
public interface PointGeometry<T extends PointGeometry> extends GeomElement<T>
Defines the interface forGeomElementobjects that contain only points.Modified by: Joseph A. Huwaldt
- Version:
- September 3, 2015
- Author:
- Joseph A. Huwaldt, Date: March 31, 2000
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetNumberOfPoints()Return the total number of points in this geometry element.Tto(javax.measure.unit.Unit<javax.measure.quantity.Length> unit)Returns the equivalent to this point geometry object but stated in the specified unit.-
Methods inherited from interface geomss.geom.GeomElement
addChangeListener, copy, copyToReal, getAllUserData, getBoundsMax, getBoundsMin, getID, getLimitPoint, getName, getParDimension, getPhyDimension, getUnit, getUserData, isValid, putAllUserData, putUserData, removeChangeListener, removeUserData, setName, size, toDimension, toText
-
-
-
-
Method Detail
-
getNumberOfPoints
int getNumberOfPoints()
Return the total number of points in this geometry element.- Returns:
- The total number of points in this geometry element.
-
to
T to(javax.measure.unit.Unit<javax.measure.quantity.Length> unit) throws javax.measure.converter.ConversionException
Returns the equivalent to this point geometry object but stated in the specified unit.- Specified by:
toin interfaceGeomElement<T extends PointGeometry>- Parameters:
unit- the length unit of the point geometry to be returned.- Returns:
- an equivalent to this point geometry object but stated in the specified unit.
- Throws:
javax.measure.converter.ConversionException- if the the input unit is not a length unit.
-
-