Module math

Class RegularPolygon

All Implemented Interfaces:
ContextDependent, BSplineCurve, KnotVector, VertexList, VertexSet, Manageable, Shareable

public class RegularPolygon extends ContextDependentBase implements BSplineCurve
  • Field Details

  • Constructor Details

    • RegularPolygon

      public RegularPolygon(int value)
      Constructor with side count as parameter.
      Parameters:
      side - count
    • RegularPolygon

      public RegularPolygon()
      Constructor with fixed side count
  • Method Details

    • getManageableType

      public ManageableType getManageableType()
      Specified by:
      getManageableType in interface Manageable
    • isTopHorizontal

      public boolean isTopHorizontal()
    • setTopHorizontal

      public void setTopHorizontal(boolean value)
    • isReverse

      public boolean isReverse()
    • setReverse

      public void setReverse(boolean value)
    • getSideCount

      public int getSideCount()
    • setSideCount

      public void setSideCount(int value)
    • getPlane

      public int getPlane()
    • setPlane

      public void setPlane(int value)
    • getCircumradius

      public float getCircumradius()
    • setCircumradius

      public void setCircumradius(float value)
    • getStarness

      public float getStarness()
    • setStarness

      public void setStarness(float value)
    • dependsOnContext

      public boolean dependsOnContext()
      Description copied from interface: ContextDependent
      Determines whether this object actually depends on context.
      Specified by:
      dependsOnContext in interface ContextDependent
      Returns:
      true iff this object depends on context
    • isRational

      public boolean isRational(GraphState gs)
      Specified by:
      isRational in interface VertexSet
    • getDimension

      public int getDimension(GraphState gs)
      Specified by:
      getDimension in interface VertexSet
    • getDegree

      public int getDegree(GraphState gs)
      Specified by:
      getDegree in interface BSplineCurve
    • getSize

      public int getSize(GraphState gs)
      Specified by:
      getSize in interface VertexList
    • getKnot

      public float getKnot(int dim, int index, GraphState gs)
      Specified by:
      getKnot in interface KnotVector
    • getVertex

      public int getVertex(float[] out, int index, GraphState gs)
      Specified by:
      getVertex in interface VertexSet