类 CylinderShape

  • 所有已实现的接口:
    java.lang.Cloneable

    public class CylinderShape
    extends Shape
    • 构造器详细资料

      • CylinderShape

        public CylinderShape()
        Constructor
      • CylinderShape

        public CylinderShape​(java.util.List<PointZ> points,
                             double radius)
        Constructor
        参数:
        points - Points
        radius - Radius
      • CylinderShape

        public CylinderShape​(PointZ p1,
                             PointZ p2,
                             double radius)
        Constructor
        参数:
        p1 - Point 1
        p2 - Point 2
        radius - Radius
    • 方法详细资料

      • toGeometry

        public org.locationtech.jts.geom.Geometry toGeometry​(org.locationtech.jts.geom.GeometryFactory factory)
        从类复制的说明: Shape
        To geometry method
        指定者:
        toGeometry 在类中 Shape
        参数:
        factory - GeometryFactory
        返回:
        Geometry
      • getPoints

        public java.util.List<PointZ> getPoints()
        Get vertex points
        覆盖:
        getPoints 在类中 Shape
        返回:
        Vertex points
      • getPoint

        public PointZ getPoint​(int i)
        Get a vertex point
        参数:
        i - The index
        返回:
        A vertex point
      • setPoints

        public void setPoints​(java.util.List<? extends PointD> value)
        Set vertex points
        覆盖:
        setPoints 在类中 Shape
        参数:
        value - Vertex points
      • getRadius

        public double getRadius()
        Get radius
        返回:
        Radius
      • setRadius

        public void setRadius​(double value)
        Set radius
        参数:
        value - Radius
      • getDiameter

        public double getDiameter()
        Get diameter
        返回:
        Diameter
      • getHeight

        public double getHeight()
        Get cylinder height
        返回:
        Cylinder height