Package mgui.geometry
Class Radius2D
java.lang.Object
mgui.geometry.Shape2D
mgui.geometry.Radius2D
public class Radius2D extends Shape2D
DEV NOTE: deprecate or change; does not have fixed geometry, thus doesn't fit definition of a
Shape.- 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.Objectclone()doublegetAngleDiff(Radius2D r2)org.jogamp.vecmath.Point2fgetEndpoint(org.jogamp.vecmath.Point2f startPt)org.jogamp.vecmath.Vector2dgetVector()org.jogamp.vecmath.Point2fgetVertex(int i)java.util.ArrayList<org.jogamp.vecmath.Point2f>getVertices()voidsetVertices(java.util.ArrayList<org.jogamp.vecmath.Point2f> vertices)java.lang.StringtoString()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, writeXMLMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
angle
public float angle -
length
public float length
-
-
Constructor Details
-
Radius2D
public Radius2D() -
Radius2D
public Radius2D(float thisAngle, float thisLength)Set this radius with angle and length double values- Parameters:
thisAngle-thisLength-
-
Radius2D
Set this radius with angle and length arDouble objects- Parameters:
thisAngle-thisLength-
-
-
Method Details
-
getVertex
public org.jogamp.vecmath.Point2f getVertex(int i) -
getVertices
public java.util.ArrayList<org.jogamp.vecmath.Point2f> getVertices()- Specified by:
getVerticesin classShape2D
-
setVertices
public void setVertices(java.util.ArrayList<org.jogamp.vecmath.Point2f> vertices)- Specified by:
setVerticesin classShape2D
-
getVector
public org.jogamp.vecmath.Vector2d getVector() -
clone
public java.lang.Object clone() -
getEndpoint
public org.jogamp.vecmath.Point2f getEndpoint(org.jogamp.vecmath.Point2f startPt) -
getAngleDiff
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-