public class Circled extends Object implements Externalizable
| Modifier and Type | Field and Description |
|---|---|
double |
r
The radius of the circle.
|
double |
x
The x coordiante of the circle's center.
|
double |
y
The y coordiante of the circle's center.
|
| Constructor and Description |
|---|
Circled()
|
Circled(Circled source)
Create a new
Circled as a copy of the given source. |
Circled(double x,
double y,
double r)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
void |
readExternal(ObjectInput in) |
String |
toString()
Return a string representation of this circle.
|
String |
toString(NumberFormat formatter)
Return a string representation of this circle by formatting the vector components with the given
NumberFormat. |
Circled |
translate(double x,
double y)
Translate
this by the vector (x, y). |
Circled |
translate(double x,
double y,
Circled dest)
Translate
this by the vector (x, y) and store the result in dest. |
Circled |
translate(Vector2dc xy)
Translate
this by the given vector xy. |
Circled |
translate(Vector2dc xy,
Circled dest)
Translate
this by the given vector xy and store the result in dest. |
Circled |
translate(Vector2fc xy)
Translate
this by the given vector xy. |
Circled |
translate(Vector2fc xy,
Circled dest)
Translate
this by the given vector xy and store the result in dest. |
void |
writeExternal(ObjectOutput out) |
public double x
public double y
public double r
public Circled()
public Circled(Circled source)
Circled as a copy of the given source.source - the Circled to copy frompublic Circled(double x,
double y,
double r)
x - the x coordinate of the circle's centery - the y coordinate of the circle's centerr - the radius of the circlepublic Circled translate(Vector2dc xy)
this by the given vector xy.xy - the vector to translate bypublic Circled translate(Vector2dc xy, Circled dest)
this by the given vector xy and store the result in dest.xy - the vector to translate bydest - will hold the resultpublic Circled translate(Vector2fc xy)
this by the given vector xy.xy - the vector to translate bypublic Circled translate(Vector2fc xy, Circled dest)
this by the given vector xy and store the result in dest.xy - the vector to translate bydest - will hold the resultpublic Circled translate(double x, double y)
this by the vector (x, y).x - the x coordinate to translate byy - the y coordinate to translate bypublic Circled translate(double x, double y, Circled dest)
this by the vector (x, y) and store the result in dest.x - the x coordinate to translate byy - the y coordinate to translate bydest - will hold the resultpublic String toString()
This method creates a new DecimalFormat on every invocation with the format string "0.000E0;-".
public String toString(NumberFormat formatter)
NumberFormat.formatter - the NumberFormat used to format the components withpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2015–2019 JOML. All rights reserved.