public class Circlef extends Object implements Externalizable
| Modifier and Type | Field and Description |
|---|---|
float |
r
The radius of the circle.
|
float |
x
The x coordiante of the circle's center.
|
float |
y
The y coordiante of the circle's center.
|
| Constructor and Description |
|---|
Circlef()
|
Circlef(Circlef source)
Create a new
Circlef as a copy of the given source. |
Circlef(float x,
float y,
float 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. |
Circlef |
translate(float x,
float y)
Translate
this by the vector (x, y). |
Circlef |
translate(float x,
float y,
Circlef dest)
Translate
this by the vector (x, y) and store the result in dest. |
Circlef |
translate(org.joml.Vector2fc xy)
Translate
this by the given vector xy. |
Circlef |
translate(org.joml.Vector2fc xy,
Circlef dest)
Translate
this by the given vector xy and store the result in dest. |
void |
writeExternal(ObjectOutput out) |
public float x
public float y
public float r
public Circlef()
public Circlef(Circlef source)
Circlef as a copy of the given source.source - the Circlef to copy frompublic Circlef(float x,
float y,
float r)
x - the x coordinate of the circle's centery - the y coordinate of the circle's centerr - the radius of the circlepublic Circlef translate(org.joml.Vector2fc xy)
this by the given vector xy.xy - the vector to translate bypublic Circlef translate(org.joml.Vector2fc xy, Circlef dest)
this by the given vector xy and store the result in dest.xy - the vector to translate bydest - will hold the resultpublic Circlef translate(float x, float y)
this by the vector (x, y).x - the x coordinate to translate byy - the y coordinate to translate bypublic Circlef translate(float x, float y, Circlef 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 © 2020 JOML. All rights reserved.