Package mgui.geometry
Class Circle2D
java.lang.Object
mgui.geometry.Shape2D
mgui.geometry.Circle2D
public class Circle2D extends Shape2D
Represents a 2D circle.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Nested Class Summary
Nested classes/interfaces inherited from interface mgui.interfaces.xml.XMLObject
XMLObject.XMLEncoding, XMLObject.XMLType
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description java.lang.Object
clone()
org.jogamp.vecmath.Point2f
getVertex(int i)
java.util.ArrayList<org.jogamp.vecmath.Point2f>
getVertices()
void
setVertices(java.util.ArrayList<org.jogamp.vecmath.Point2f> n)
Methods inherited from class mgui.geometry.Shape2D
contains, getBounds, getCenterPt, getCoords, getDTD, getLocalName, getProximity, getProximityPoint, getShortXML, getSize, getVertices, getXML, getXML, getXMLSchema, handleXMLElementEnd, handleXMLElementStart, handleXMLString, setCoords, setVertices, transform, transform, writeXML, writeXML, writeXML
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
centerPt
public org.jogamp.vecmath.Point2f centerPt -
radius
public float radius
-
-
Constructor Details
-
Circle2D
public Circle2D() -
Circle2D
public Circle2D(org.jogamp.vecmath.Point2f thisCenter, float thisRadius) -
Circle2D
public Circle2D(float x, float y, float thisRadius)
-
-
Method Details
-
getVertex
public org.jogamp.vecmath.Point2f getVertex(int i) -
getVertices
public java.util.ArrayList<org.jogamp.vecmath.Point2f> getVertices()- Specified by:
getVertices
in classShape2D
-
setVertices
public void setVertices(java.util.ArrayList<org.jogamp.vecmath.Point2f> n)- Specified by:
setVertices
in classShape2D
-
clone
public java.lang.Object clone()
-