/** * Sets the view-independent transform matrix for this handle. * This transform does not include the view-dependent scaling that is * applied to the handle's geometry <em>before</em> the transform. * @param transform the transform. */ public void setTransform(Matrix44 transform) { _transform = new Matrix44(transform); dirtyBoundingSphere(); dirtyDraw(); }
/** * Sets the view-independent location of the center of this handle. * This method conveniently sets the handle transform to a pure * translation to the center point with specified coordinates. * @param x the center x coordinate. * @param y the center y coordinate. * @param z the center z coordinate. */ public void setLocation(double x, double y, double z) { _transform = Matrix44.translate(x,y,z); dirtyBoundingSphere(); dirtyDraw(); }