Geometric utilities. More...
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.
| 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.
| size | Size to scale. | |
| limit | Scale limit. |
| 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).
| size | Size to scale. | |
| limit | Scale limit. |
Copyright 2006-2013 Stefano Chizzolini. For more information, please visit PDF Clown home page.
Generated on Sat Feb 9 21:08:40 2013 for PDF Clown 0.1.2 by
1.6.3