相关代码 |
|
package org.j3de.ui.impl; import javax.media.j3d.Transform3D; import javax.vecmath.Vector3f; import org.j3de.ui.UIElementMapper; public class PlaneLayout extends GraphLayout { private Vector3f translation; public PlaneLayout() { translation = new Vector3f(); } public void normalize(Transform3D transform) { transform.get(translation); translation.z = 0; transform.setTranslation(translation); } }