Class Sphere3afp.AbstractSpherePathIterator<T extends PathElement3afp>

    • Field Detail

      • CTRL_POINT_DISTANCE

        public static final double CTRL_POINT_DISTANCE
        Distance from a Bezier curve control point on the sphere to the other control point.

        4/3 tan (PI/(2*n)), where n is the number on points on the sphere.

        See Also:
        Constant Field Values
      • BEZIER_CONTROL_POINTS

        public static final double[][] BEZIER_CONTROL_POINTS
        Contains the control points for a set of 4 cubic bezier curves that approximate a sphere of radius 1 centered at (0,0,0).
      • NUMBER_ELEMENTS

        protected static final int NUMBER_ELEMENTS
        4 segments + close.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractSpherePathIterator

        public AbstractSpherePathIterator​(Sphere3afp<?,​?,​T,​?,​?,​?> 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<T extends PathElement3afp>
        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<T extends PathElement3afp>
        Returns:
        true if the path contains curve primitives, 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<T extends PathElement3afp>
        Returns:
        true if the path does not contain curve primitives, false otherwise.
      • isMultiParts

        @Pure
        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<T extends PathElement3afp>
        Returns:
        true if the path has multiple move-to primitive, false otherwise.