|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.geometry2d.Translation2D
public class Translation2D
Performs translations on 2D geometrical entities (lines, polygons)
| Constructor Summary | |
|---|---|
Translation2D()
|
|
| Method Summary | |
|---|---|
static void |
moveTo(Line2D line,
Point2D point)
Moves a Line2D object (with respect to it's origin) to specified point. |
static void |
moveTo(Polygon2D polygon,
Point2D point)
Moves a Polygon2D object (with respect to it's origin) to specified point. |
static void |
translate(Line2D line,
double dx,
double dy)
Translate a Line2D object on the X and Y axes. |
static void |
translate(Point2D point,
double dx,
double dy)
Translate a Point2D object on the X and Y axes. |
static void |
translate(Polygon2D polygon,
double dx,
double dy)
Translate a Polygon2D object on the X and Y axes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Translation2D()
| Method Detail |
|---|
public static void translate(Point2D point,
double dx,
double dy)
point - the point to translatedx - the X-axis offsetdy - the Y-axis offset
public static void translate(Line2D line,
double dx,
double dy)
line - the line to translatedx - the X-axis offsetdy - the Y-axis offset
public static void translate(Polygon2D polygon,
double dx,
double dy)
polygon - the polygon to translatedx - the X-axis offsetdy - the Y-axis offset
public static void moveTo(Line2D line,
Point2D point)
line - the line to movepoint - the point to move to
public static void moveTo(Polygon2D polygon,
Point2D point)
polygon - the polygon to movepoint - the point to move to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||