/** * Updates the center point and extents of this box using the defined values. * * @param center * The center of the box. * @param xExtent * x extent of the box * @param yExtent * y extent of the box * @param zExtent * z extent of the box */ public void setData(final ReadOnlyVector3 center, final double xExtent, final double yExtent, final double zExtent) { if (center != null) { _center.set(center); } _xExtent = xExtent; _yExtent = yExtent; _zExtent = zExtent; setVertexData(); setNormalData(); setTextureData(); setIndexData(); }
/** * Updates the center point and extents of this box using the defined values. * * @param center * The center of the box. * @param xExtent * x extent of the box * @param yExtent * y extent of the box * @param zExtent * z extent of the box */ public void setData(final ReadOnlyVector3 center, final double xExtent, final double yExtent, final double zExtent) { if (center != null) { _center.set(center); } _xExtent = xExtent; _yExtent = yExtent; _zExtent = zExtent; setVertexData(); setNormalData(); setTextureData(); setIndexData(); }