|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.composite.geometry.DefaultGeometryItemCoordinates
Default implementation of the GeometryItemCoordinates interface.
GeometryItemCoordinates| Constructor Summary | |
DefaultGeometryItemCoordinates(int[] componentsX,
int[] componentsY)
Constructor for DefaultGeometryItemCoordinates. |
|
DefaultGeometryItemCoordinates(int[] componentsX,
int[] componentsY,
int[] componentsXRef,
int[] componentsYRef,
int[] segmentTypes)
Constructor specifying the coordinates, the reference coordinates and and the segment-types. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
|
int[] |
getComponentsX()
Returns a copy of all stored x-coordinates in an int-array. |
int[] |
getComponentsY()
Returns a copy of all stored y-coordinates in an int-array. |
int[] |
getCoordinate(int index)
Returns the (x,y)-coordinate-pair stored at the given index. |
int |
getCoordinateCount()
Returns the number of coordinate-pairs stored. |
int[] |
getReferenceComponentsX()
Returns a copy of all stored reference x-coordinates. |
int[] |
getReferenceComponentsY()
Returns a copy of all stored reference y-coordinates. |
int[] |
getSegmentTypes()
Returns a copy of the int-array containing all segment-types. |
int |
hashCode()
|
boolean |
hasSegmentTypes()
Returns true, if segment-types are stored. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DefaultGeometryItemCoordinates(int[] componentsX,
int[] componentsY)
componentsX - an array holding the x-components.componentsY - an array holding the y-components.
public DefaultGeometryItemCoordinates(int[] componentsX,
int[] componentsY,
int[] componentsXRef,
int[] componentsYRef,
int[] segmentTypes)
componentsX - an array holding the x-components.componentsY - an array holding the y-components.componentsXRef - an array holding the x-components of the reference
coordinates.componentsYRef - an array holding the y-components of the reference
coordinates.segmentTypes - an array holding the segment types.| Method Detail |
public int getCoordinateCount()
GeometryItemCoordinates
getCoordinateCount in interface GeometryItemCoordinatespublic boolean hasSegmentTypes()
GeometryItemCoordinatestrue, if segment-types are stored.
hasSegmentTypes in interface GeometryItemCoordinatestrue, if segment-types are stored.public int[] getCoordinate(int index)
GeometryItemCoordinatesresult[0] -> x, result[1] -> y.
getCoordinate in interface GeometryItemCoordinatesindex - the index for which to retrieve th coordinate-pair.
public int[] getComponentsX()
GeometryItemCoordinatesint-array.
getComponentsX in interface GeometryItemCoordinatespublic int[] getComponentsY()
GeometryItemCoordinatesint-array.
getComponentsY in interface GeometryItemCoordinatespublic int[] getReferenceComponentsX()
GeometryItemCoordinates
getReferenceComponentsX in interface GeometryItemCoordinatespublic int[] getReferenceComponentsY()
GeometryItemCoordinates
getReferenceComponentsY in interface GeometryItemCoordinatespublic int[] getSegmentTypes()
GeometryItemCoordinatesint-array containing all segment-types.
getSegmentTypes in interface GeometryItemCoordinatesint-array containing all segment-types.public java.lang.String toString()
Object.toString()public boolean equals(java.lang.Object obj)
public int hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||