@Override public Surface surface() { return Surface.forAngles(height(), width()); }
private boolean awtOverflows() { if (this.awtOverflows == null) { final Rectangle bounds = bounds(); this.awtOverflows = bounds.width().asDm7() <= 0 || bounds.height().asDm7() <= 0; } return this.awtOverflows; }
/** * Expansion distance will be the smaller of the height/width scaled by 1/4. * * @param bounds * The bounds * @return The smaller of the height/width scaled by 1/4 */ public static Distance calculateExpansionDistance(final Rectangle bounds) { final Distance shorterSide = bounds.width().onEarth().isLessThanOrEqualTo( bounds.height().onEarth()) ? bounds.width().onEarth() : bounds.height().onEarth(); return shorterSide.scaleBy(NEIGHBOR_EXPANSION_SCALE); }
if (bounds.height().onEarth().isLessThan(TEN_METERS))