public static String toXML(PrecisionModel precisionModel) { if (precisionModel.isFloating()) { return "<precisionModel type=\"FLOATING\"/>"; } return "<precisionModel type=\"FIXED\" scale=\"" + precisionModel.getScale() + "\"/>"; }
/** * Sets <code>internal</code> to the precise representation of <code>external</code>. * * @param external the original coordinate * @param internal the coordinate whose values will be changed to the * precise representation of <code>external</code> * @deprecated use makePrecise instead */ public void toInternal (Coordinate external, Coordinate internal) { if (isFloating()) { internal.x = external.x; internal.y = external.y; } else { internal.x = makePrecise(external.x); internal.y = makePrecise(external.y); } internal.setZ(external.getZ()); }