public class Sphere
extends java.lang.Object
Constructor and Description |
---|
Sphere() |
Sphere(double radius) |
Sphere(Vector3 center,
double radius) |
Modifier and Type | Method and Description |
---|---|
Sphere |
apply(Matrix4 matrix) |
Vector3 |
clampPoint(Vector3 point) |
Vector3 |
clampPoint(Vector3 point,
Vector3 optionalTarget) |
Sphere |
clone() |
Sphere |
copy(Sphere sphere) |
double |
distanceToPoint(Vector3 point) |
boolean |
equals(Sphere sphere) |
Box3 |
getBoundingBox() |
Box3 |
getBoundingBox(Box3 optionalTarget) |
Vector3 |
getCenter() |
double |
getRadius() |
boolean |
isContainsPoint(Vector3 point) |
boolean |
isEmpty() |
boolean |
isIntersectsSphere(Sphere sphere) |
Sphere |
set(Vector3 center,
double radius) |
void |
setCenter(Vector3 center) |
Sphere |
setFromPoints(java.util.List<Vector3> points,
Vector3 optionalCenter) |
Sphere |
setFromPoints(Vector3[] points,
Vector3 optionalCenter) |
void |
setRadius(double radius) |
Sphere |
translate(Vector3 offset) |
public Sphere()
public Sphere(double radius)
public Sphere(Vector3 center, double radius)
public Vector3 getCenter()
public void setCenter(Vector3 center)
public double getRadius()
public void setRadius(double radius)
public boolean isEmpty()
public boolean isContainsPoint(Vector3 point)
public double distanceToPoint(Vector3 point)
public boolean isIntersectsSphere(Sphere sphere)
public Box3 getBoundingBox()
public boolean equals(Sphere sphere)
public Sphere clone()
clone
in class java.lang.Object