Package mgui.morph.sections
Class RadialRepresentation
java.lang.Object
mgui.morph.sections.RadialRepresentation
- Direct Known Subclasses:
ConstrainedRadialRepresentation
public class RadialRepresentation
extends java.lang.Object
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description intP1java.util.ArrayList<Radius2D>RadialNodesPolygon2Dsource -
Constructor Summary
Constructors Constructor Description RadialRepresentation()RadialRepresentation(Polygon2D thisPoly) -
Method Summary
Modifier and Type Method Description doublegetMaxLength()intgetNodeIndex(int i)Gets the polygon index corresponding to the radius index ivoidprintRep()voidSetRepresentation(Polygon2D thisPoly)Set the radial representation for a given polygonMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
P1
public int P1 -
RadialNodes
-
source
-
-
Constructor Details
-
RadialRepresentation
public RadialRepresentation() -
RadialRepresentation
-
-
Method Details
-
SetRepresentation
Set the radial representation for a given polygon- Parameters:
Polygon2D- thisPoly - a polygon object with which to set this representation
-
printRep
public void printRep() -
getNodeIndex
public int getNodeIndex(int i)Gets the polygon index corresponding to the radius index i- Parameters:
i- the radial representation index of the node- Returns:
- int value for polygon index of node represented by radius i
-
getMaxLength
public double getMaxLength()- Returns:
- double - the maximum length of all radii
-