/** * 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)); }
/** * Returns {@code true} if the two instances are not exactly equal. * @param left The instance to compare to {@code right}. * @param right The instance to compare to {@code left}. * @return {@code true} if {@code left} does not represent the same value as {@code right}; otherwise, {@code false}. */ @CS2JInfo("This method implements the functionality of the overloaded operator: 'System.Boolean !=(CartographicExtent,CartographicExtent)'") public static boolean notEquals(CartographicExtent left, CartographicExtent right) { return !(CartographicExtent.equals(left, right)); }
/** * Indicates whether another object is exactly equal to this instance. * @param obj The object to compare to this instance. * @return {@code true} if {@code obj} is an instance of this type and represents the same value as this instance; otherwise, {@code false}. */ @Override public boolean equals(Object obj) { return equalsType((obj instanceof CartographicExtent) ? (CartographicExtent) obj : null); }
/** * Writes a {@link CartographicExtent} value as an array in WestLongitude, SouthLatitude, EastLongitude, NorthLatitude order. * @param output The stream to which to write the value. * @param value The value to write. */ public static void writeCartographicExtent(CesiumOutputStream output, CartographicExtent value) { output.writeStartSequence(); output.writeValue(value.getWestLongitude()); output.writeValue(value.getSouthLatitude()); output.writeValue(value.getEastLongitude()); output.writeValue(value.getNorthLatitude()); output.writeEndSequence(); }
output.writeValue(epoch.secondsDifference(dates.get(i))); CartographicExtent value = values.get(i); output.writeValue(value.getWestLongitude()); output.writeValue(value.getSouthLatitude()); output.writeValue(value.getEastLongitude()); output.writeValue(value.getNorthLatitude()); output.writeLineBreak();
/** * 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)); }
/** * Returns {@code true} if the two instances are exactly equal. * @param left The instance to compare to {@code right}. * @param right The instance to compare to {@code left}. * @return {@code true} if {@code left} represents the same value as {@code right}; otherwise, {@code false}. */ @CS2JInfo("This method implements the functionality of the overloaded operator: 'System.Boolean ==(CartographicExtent,CartographicExtent)'") public static boolean equals(CartographicExtent left, CartographicExtent right) { if (ObjectHelper.referenceEquals(left, null)) { return ObjectHelper.referenceEquals(right, null); } return left.equalsType(right); }
/** * 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)); }