/** * Writes the value expressed as a {@code wsen}, which is the property specified as a Cartographic rectangle {@code [WestLongitude, SouthLatitude, EastLongitude, NorthLatitude]}, with values in radians. * @param west The westernmost longitude. * @param south The southernmost latitude. * @param east The easternmost longitude. * @param north The northernmost latitude. */ public final void writeWsen(double west, double south, double east, double north) { writeWsen(new CartographicExtent(west, south, east, north)); }
/** * Writes the value expressed as a {@code wsen}, which is the set of coordinates specified as Cartographic values {@code [WestLongitude, SouthLatitude, EastLongitude, NorthLatitude]}, with values in radians. * @param west The westernmost longitude. * @param south The southernmost latitude. * @param east The easternmost longitude. * @param north The northernmost latitude. */ public final void writeWsen(double west, double south, double east, double north) { writeWsen(new CartographicExtent(west, south, east, north)); }
/** * Writes the value expressed as a {@code wsenDegrees}, which is the property specified as a Cartographic rectangle {@code [WestLongitude, SouthLatitude, EastLongitude, NorthLatitude]}, with values in degrees. * @param west The westernmost longitude. * @param south The southernmost latitude. * @param east The easternmost longitude. * @param north The northernmost latitude. */ public final void writeWsenDegrees(double west, double south, double east, double north) { writeWsenDegrees(new CartographicExtent(west, south, east, north)); }
/** * Writes the value expressed as a {@code wsenDegrees}, which is the set of coordinates specified as Cartographic values {@code [WestLongitude, SouthLatitude, EastLongitude, NorthLatitude]}, with values in degrees. * @param west The westernmost longitude. * @param south The southernmost latitude. * @param east The easternmost longitude. * @param north The northernmost latitude. */ public final void writeWsenDegrees(double west, double south, double east, double north) { writeWsenDegrees(new CartographicExtent(west, south, east, north)); }
/** * Computes the union of this extent with another extent. The union of two extents is the smallest extent that includes both. * @param other The other extent. * @return The union of the two extents. */ @CS2JWarning("Unhandled attribute removed: Pure") public final CartographicExtent union(CartographicExtent other) { return new CartographicExtent(Math.min(m_west, other.m_west), Math.min(m_south, other.m_south), Math.max(m_east, other.m_east), Math.max(m_north, other.m_north)); }