|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchuidiang.matematicas.UtilRectangulo
public class UtilRectangulo
Métodos utiles para rectángulos.
| Constructor Summary | |
|---|---|
UtilRectangulo()
|
|
| Method Summary | |
|---|---|
static java.awt.geom.Rectangle2D |
agrandar(java.awt.geom.Rectangle2D original,
double porcentaje)
Agranda un rectángulo, manteniendo el centro en su sitio. |
static java.awt.geom.Rectangle2D |
reducir(java.awt.geom.Rectangle2D original,
double porcentaje)
Reduce un rectángulo en el porcentaje que se le pasa, manteniendo el centro en su sitio. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UtilRectangulo()
| Method Detail |
|---|
public static java.awt.geom.Rectangle2D agrandar(java.awt.geom.Rectangle2D original,
double porcentaje)
original - Rectangulo original.porcentaje - Porcentaje en % que se quiere agrandar el rectángulo.
public static java.awt.geom.Rectangle2D reducir(java.awt.geom.Rectangle2D original,
double porcentaje)
original - Rectángulo original.porcentaje - Porcentaje en % de reducción.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||