|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graphics.CoordinateOperations
The CoordinateOperations class provides some functionalities
that represent basic operations on coordinates.
| Method Summary | |
static Boundary |
computeBoundingBox2D(Coordinate[] coordinates)
Static method that computes the 2d boundary of all coordinates in the given coordinate array. |
static Coordinate |
difference(Coordinate a,
Coordinate b)
Static helper method that computes the difference between two Coordinates.
|
static Coordinate |
transform_createnew(Transform2D xform,
Coordinate coordinate)
Transforms the Coordinate given by coordinate
with the Transform2D given by xform. |
static Coordinate[] |
transform_createnew(Transform2D xform,
Coordinate[] coordinates)
Transforms the Coordinates given by coordinates
with the Transform2D given by xform. |
static void |
transform(Transform2D[] xform,
Coordinate coordinate)
|
static void |
transform(Transform2D xform,
Coordinate coordinate)
Transforms the Coordinate given by coordinate
with the Transform2D given by xform. |
static void |
transform(Transform2D xform,
Coordinate[] coordinates)
Transforms the Coordinates given by coordinates
with the Transform2D given by xform. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static final void transform(Transform2D xform,
Coordinate coordinate)
Coordinate given by coordinate
with the Transform2D given by xform. The
resulting coordinate is stored in the Coordinate given by
coordinate.
null.
xform - the Transform2D to transform the given
Coordinate withcoordinate - the Coordinate to transform with the given
Transform2D
public static final void transform(Transform2D[] xform,
Coordinate coordinate)
public static final Coordinate transform_createnew(Transform2D xform,
Coordinate coordinate)
Coordinate given by coordinate
with the Transform2D given by xform. The
resulting coordinate is returned as a new Coordinate.
null.
xform - the Transform2D to transform the given
Coordinate withcoordinate - the Coordinate to transform with the given
Transform2D
Coordinate
public static final void transform(Transform2D xform,
Coordinate[] coordinates)
Coordinates given by coordinates
with the Transform2D given by xform. The
resulting coordinates are stored in the Coordinate array
given by coordinates.
null.
xform - the Transform2D to transform the given
Coordinate withcoordinates - the Coordinate array to transform with
the given Transform2D
public static final Coordinate[] transform_createnew(Transform2D xform,
Coordinate[] coordinates)
Coordinates given by coordinates
with the Transform2D given by xform. The
resulting coordinates are returned as a new Coordinate
array.
null.
xform - the Transform2D to transform the given
Coordinate withcoordinates - the Coordinate array to transform with
the given Transform2D
Coordinates
public static final Coordinate difference(Coordinate a,
Coordinate b)
Coordinates.
The two given Coordinates must have the same
number of components.
a - the first coordinate.b - the second coordinate.
public static final Boundary computeBoundingBox2D(Coordinate[] coordinates)
coordinates - the array to compute the boundingbox for.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||