# org.pdfclown.util.math.geom.GeomUtils Class Reference

Geometric utilities. More...

List of all members.

## Static Public Member Functions
static SizeF | Scale (SizeF size, SizeF limit)
| Gets the size scaled to the specified limit.
static SizeF | Scale (SizeF size, float limit)
| Gets the size scaled to the specified limit.

##

Geometric utilities.

## Member Function Documentation

static SizeF org.pdfclown.util.math.geom.GeomUtils.Scale | ( | SizeF | size,
|  | SizeF | limit |
| ) |  |  | `[static]`

Gets the size scaled to the specified limit.

In particular, implicit (zero-valued) limit dimensions correspond to proportional dimensions; for example, a limit Dimension2D(0, 300) means 300 high and proportionally wide.

Parameters:

  | size | Size to scale.
  | limit | Scale limit.

Returns:
  Scaled size.

static SizeF org.pdfclown.util.math.geom.GeomUtils.Scale | ( | SizeF | size,
|  | float | limit |
| ) |  |  | `[static]`

Gets the size scaled to the specified limit.

In particular, the limit matches the largest dimension and proportionally scales the other one; for example, a limit 300 applied to size Dimension2D(100, 200) returns Dimension2D(150, 300).

Parameters:

  | size | Size to scale.
  | limit | Scale limit.

Returns:
  Scaled size.

Copyright 2006-2013 Stefano Chizzolini. For more information, please visit PDF Clown home page.