@Nonnull @CheckReturnValue public SizeDouble getSubtracted(@Nonnull final IHasDimensionInt aToSubtract) { ValueEnforcer.notNull(aToSubtract, "ToSubtract"); return new SizeDouble(m_dWidth - aToSubtract.getWidth(), m_dHeight - aToSubtract.getHeight()); }
@Nonnull @CheckReturnValue public SizeDouble getAdded(@Nonnull final IHasDimensionInt aToAdd) { ValueEnforcer.notNull(aToAdd, "ToAdd"); return new SizeDouble(m_dWidth + aToAdd.getWidth(), m_dHeight + aToAdd.getHeight()); }
public SizeDouble(@Nonnull final IHasDimensionInt aObj) { this(aObj.getWidth(), aObj.getHeight()); }