Documentation of 'vgp.curve.zigzag.PjZigZag' Java class
PjZigZag ("JavaView Reference Manual")
"JavaView? v5.03.003"
vgp.curve.zigzag

Class PjZigZag

    • Constructor Detail

      • PjZigZag

        public PjZigZag()
        Sets the required polygon and the panels for the number of lines, Length of the Zag and the angles of the zig and the zag.
    • Method Detail

      • init

        public void init()
        Initializes the Applet. Sets default values and draws the standard zigzag.
        Overrides:
        init in class PjProject
      • computeZigZag

        public void computeZigZag()
        Computes the ZigZag construction depending on the given prameters: angles, lengths and number of lines. The length of the zig is held constantly at 100.
      • computeVertices

        public PdVector[] computeVertices(PgPolygonSet z_short,
                                          double[] vFac,
                                          int[] length)
        Computes the vertices of the ZigZag with the given parameters.
        Parameters:
        z_short - polygons that define the number of polygons in the zigzag
        vFac - vFac[0] = angle of zig, vFac[1] = angle of zag
        length - m_length[0] = length of zig, m_length[1] = length of zag
        Returns:
        the vertices of the zigzag construction
      • showZags

        public PiVector[] showZags(PgPolygonSet z_short,
                                   int delta)
        Draws the Zags extended to infinity.
        Parameters:
        z_short - the polygons drawn in this method are baed on the points in this polygonset
        delta - the number of zags skipped
        Returns:
        the polygons of which each contains an extended zag (2 verices). The number of polygons is defined by the number of polygons in z_short.
      • showZigZag

        public PiVector[] showZigZag(PgPolygonSet z_short)
        Draws the ZigZag in original size.
        Parameters:
        z_short - the polygons drawn in this method are baed on the points in this polygonset
        Returns:
        the polygons of which each contains a zig and a zag (3 vertices). The number of polygons is defined by the number of polygons in z_short.
"JavaView? v5.03.003"

"

The software JavaView? is copyright protected. All Rights Reserved.
"

Ads help maintain this website.