de.grogra.math
public class RegularPolygon extends ContextDependentBase implements BSplineCurve
| Modifier and Type | Class and Description |
|---|---|
static class |
RegularPolygon.Type |
| Modifier and Type | Field and Description |
|---|---|
static RegularPolygon.Type |
$TYPE |
static SCOType.Field |
circumradius$FIELD |
static SCOType.Field |
plane$FIELD |
static SCOType.Field |
reverse$FIELD |
static SCOType.Field |
sideCount$FIELD |
static SCOType.Field |
starness$FIELD |
static SCOType.Field |
topHorizontal$FIELD |
| Constructor and Description |
|---|
RegularPolygon()
Constructor with fixed side count
|
RegularPolygon(int value)
Constructor with side count as parameter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
dependsOnContext()
Determines whether this object actually depends on context.
|
float |
getCircumradius() |
int |
getDegree(GraphState gs) |
int |
getDimension(GraphState gs) |
float |
getKnot(int dim,
int index,
GraphState gs) |
ManageableType |
getManageableType() |
int |
getPlane() |
int |
getSideCount() |
int |
getSize(GraphState gs) |
float |
getStarness() |
int |
getVertex(float[] out,
int index,
GraphState gs) |
boolean |
isRational(GraphState gs) |
boolean |
isReverse() |
boolean |
isTopHorizontal() |
void |
setCircumradius(float value) |
void |
setPlane(int value) |
void |
setReverse(boolean value) |
void |
setSideCount(int value) |
void |
setStarness(float value) |
void |
setTopHorizontal(boolean value) |
writeStampaddReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReferenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteStamppublic static final RegularPolygon.Type $TYPE
public static final SCOType.Field circumradius$FIELD
public static final SCOType.Field plane$FIELD
public static final SCOType.Field reverse$FIELD
public static final SCOType.Field sideCount$FIELD
public static final SCOType.Field starness$FIELD
public static final SCOType.Field topHorizontal$FIELD
public RegularPolygon()
public RegularPolygon(int value)
side - countpublic boolean dependsOnContext()
ContextDependentdependsOnContext in interface ContextDependenttrue iff this object depends on contextpublic float getCircumradius()
public int getDegree(GraphState gs)
getDegree in interface BSplineCurvepublic int getDimension(GraphState gs)
getDimension in interface VertexSetpublic float getKnot(int dim,
int index,
GraphState gs)
getKnot in interface KnotVectorpublic ManageableType getManageableType()
getManageableType in interface Manageablepublic int getPlane()
public int getSideCount()
public int getSize(GraphState gs)
getSize in interface VertexListpublic float getStarness()
public int getVertex(float[] out,
int index,
GraphState gs)
public boolean isRational(GraphState gs)
isRational in interface VertexSetpublic boolean isReverse()
public boolean isTopHorizontal()
public void setCircumradius(float value)
public void setPlane(int value)
public void setReverse(boolean value)
public void setSideCount(int value)
public void setStarness(float value)
public void setTopHorizontal(boolean value)