aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/classes/share/javax/media/j3d/BoundingSphere.java18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/classes/share/javax/media/j3d/BoundingSphere.java b/src/classes/share/javax/media/j3d/BoundingSphere.java
index f37bc6d..db14526 100644
--- a/src/classes/share/javax/media/j3d/BoundingSphere.java
+++ b/src/classes/share/javax/media/j3d/BoundingSphere.java
@@ -291,16 +291,14 @@ double radius;
center.z = this.center.z;
}
- /**
- * Sets the position of this bounding sphere from a point.
- * @param center a Point defining the new center of the bounding sphere
- */
- public void setCenter(Point3d center) {
- this.center.x = center.x;
- this.center.y = center.y;
- this.center.z = center.z;
- checkBoundsIsNaN();
- }
+/**
+ * Sets the position of this bounding sphere from a point.
+ * @param center a Point defining the new center of the bounding sphere
+ */
+public void setCenter(Point3d center) {
+ this.center.set(center);
+ updateBoundsStates();
+}
/**
* Sets the value of this BoundingSphere.