/** * Sets the envelope of the Geometry. The Envelope description must match * that of the Geometry. */ public void setEnvelope(Envelope env) { if (!m_description.equals(env.getDescription())) throw new IllegalArgumentException(); // m_envelope = (Envelope) env.clone(); m_envelope = (Envelope) env.createInstance(); env.copyTo(m_envelope); _setDirtyFlag(DirtyFlags.DirtyIntervals, false); }
/** * Sets the envelope of the Geometry. The Envelope description must match * that of the Geometry. */ public void setEnvelope(Envelope env) { if (!m_description.equals(env.getDescription())) throw new IllegalArgumentException(); // m_envelope = (Envelope) env.clone(); m_envelope = (Envelope) env.createInstance(); env.copyTo(m_envelope); _setDirtyFlag(DirtyFlags.DirtyIntervals, false); }
dst.m_envelope = (Envelope) m_envelope.createInstance(); m_envelope.copyTo(dst.m_envelope);
dst.m_envelope = (Envelope) m_envelope.createInstance(); m_envelope.copyTo(dst.m_envelope);
env.queryEnvelope2D(env2D); if (env2D.isDegenerate(tolerance)) { return (Geometry) (env.createInstance()); // return empty
env.queryEnvelope2D(env2D); if (env2D.isDegenerate(tolerance)) { return (Geometry) (env.createInstance()); // return empty
env.queryEnvelope2D(env2D); if (env2D.isDegenerate(tolerance)) { return (Geometry) (env.createInstance()); // return empty
env.queryEnvelope2D(env2D); if (env2D.isDegenerate(tolerance)) { return (Geometry) (env.createInstance()); // return empty