Class Sphere3ai.AbstractCirclePathIterator<IE extends PathElement3ai>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static double[][] CTRL_PTS
      ctrlpts contains the control points for a set of 4 cubic bezier curves that approximate a sphere of radius 0.5 centered at 0.5, 0.5.
      protected static double CTRL_VAL
      ArcIterator.btan(Math.PI/2).
      protected static double NCV
      ctrlpts contains the control points for a set of 4 cubic bezier curves that approximate a sphere of radius 0.5 centered at 0.5, 0.5.
      protected static double PCV
      ctrlpts contains the control points for a set of 4 cubic bezier curves that approximate a sphere of radius 0.5 centered at 0.5, 0.5.
      protected Sphere3ai<?,​?,​IE,​?,​?,​?> sphere
      The element factory.
    • Field Detail

      • CTRL_VAL

        protected static final double CTRL_VAL
        ArcIterator.btan(Math.PI/2).
        See Also:
        Constant Field Values
      • PCV

        protected static final double PCV
        ctrlpts contains the control points for a set of 4 cubic bezier curves that approximate a sphere of radius 0.5 centered at 0.5, 0.5.
        See Also:
        Constant Field Values
      • NCV

        protected static final double NCV
        ctrlpts contains the control points for a set of 4 cubic bezier curves that approximate a sphere of radius 0.5 centered at 0.5, 0.5.
        See Also:
        Constant Field Values
      • CTRL_PTS

        protected static final double[][] CTRL_PTS
        ctrlpts contains the control points for a set of 4 cubic bezier curves that approximate a sphere of radius 0.5 centered at 0.5, 0.5.
    • Constructor Detail

      • AbstractCirclePathIterator

        public AbstractCirclePathIterator​(Sphere3ai<?,​?,​IE,​?,​?,​?> sphere)
        Constructor.
        Parameters:
        sphere - the sphere.
    • Method Detail

      • isPolyline

        @Pure
        public boolean isPolyline()
        Description copied from interface: PathIterator3D
        Replies the path is composed only by one MOVE_TO, and a sequence of LINE_TO primitives.
        Specified by:
        isPolyline in interface PathIterator3D<IE extends PathElement3ai>
        Returns:
        true if the path does not contain curve primitives, false otherwise.
      • isCurved

        public boolean isCurved()
        Description copied from interface: PathIterator3D
        Replies the path contains a curve.
        Specified by:
        isCurved in interface PathIterator3D<IE extends PathElement3ai>
        Returns:
        true if the path contains curve primitives, false otherwise.
      • isMultiParts

        public boolean isMultiParts()
        Description copied from interface: PathIterator3D
        Replies the path has multiple parts, i.e. multiple MOVE_TO are inside. primitives.
        Specified by:
        isMultiParts in interface PathIterator3D<IE extends PathElement3ai>
        Returns:
        true if the path has multiple move-to primitive, false otherwise.
      • isPolygon

        public boolean isPolygon()
        Description copied from interface: PathIterator3D
        Replies the path is composed only by one MOVE_TO, a sequence of LINE_TO or QUAD_TO or CURVE_TO, and a single CLOSE primitives.
        Specified by:
        isPolygon in interface PathIterator3D<IE extends PathElement3ai>
        Returns:
        true if the path does not contain curve primitives, false otherwise.