| Modifier and Type | Field and Description |
|---|---|
| public final Vector3 | center
the center of the sphere |
| private static final float | |
| public float | radius
the radius of the sphere |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public boolean | |
| public float | |
| public float |
| center | back to summary |
|---|---|
| public final Vector3 center the center of the sphere | |
| PI_4_3 | back to summary |
|---|---|
| private static final float PI_4_3 | |
| radius | back to summary |
|---|---|
| public float radius the radius of the sphere | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| Sphere | back to summary |
|---|---|
| public Sphere(Vector3 center, float radius) Constructs a sphere with the given center and radius
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| overlaps | back to summary |
|---|---|
public boolean overlaps(Sphere sphere)
| |
| surfaceArea | back to summary |
|---|---|
| public float surfaceArea() | |
| volume | back to summary |
|---|---|
| public float volume() | |