Class RegularPolygon


  • public class RegularPolygon
    extends Primitive
    • Constructor Detail

      • RegularPolygon

        public RegularPolygon()
        Generates a size 1.0 triangle.
      • RegularPolygon

        public RegularPolygon​(java.lang.Object position,
                              java.lang.Object rotation,
                              java.lang.Object size,
                              int absFlags,
                              java.lang.Object c,
                              int vertices,
                              IParsedExpression drawcondition)
        Generates a new RegularPolygon.
        Parameters:
        position - position or position-binding
        xrotation - xrotation or rotation-binding
        yrotation - yrotation or rotation-binding
        zrotation - zrotation or rotation-binding
        size - size or size-binding
        absFlags - flags for setting position, size and rotation as absolutes
        c - the drawable's color or binding
        vertices - number of vertices (corners)
    • Method Detail

      • setType

        public void setType​(int type)
        Set the primitive type (Disabled).
        Overrides:
        setType in class Primitive
        Parameters:
        type - The type to set.
      • getVertexCount

        public int getVertexCount()
        Returns the vertex count.
        Returns:
        The vertex count.