1 |
/* AffineTransform.java -- transform coordinates between two 2-D spaces |
/* AffineTransform.java -- transform coordinates between two 2-D spaces |
2 |
Copyright (C) 2000, 2001, 2002 Free Software Foundation |
Copyright (C) 2000, 2001, 2002, 2004 Free Software Foundation |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
57 |
* [ 1 ] [ 0 0 1 ] [ 1 ] [ 1 ] |
* [ 1 ] [ 0 0 1 ] [ 1 ] [ 1 ] |
58 |
* </pre> |
* </pre> |
59 |
* The bottom row of the matrix is constant, so a transform can be uniquely |
* The bottom row of the matrix is constant, so a transform can be uniquely |
60 |
* represented (as in toString) by "[[m00, m01, m02], [m10, m11, m12]]". |
* represented (as in {@link #toString()}) by |
61 |
|
* "[[m00, m01, m02], [m10, m11, m12]]". |
62 |
* |
* |
63 |
* @author Tom Tromey <tromey@cygnus.com> |
* @author Tom Tromey (tromey@cygnus.com) |
64 |
* @author Eric Blake <ebb9@email.byu.edu> |
* @author Eric Blake (ebb9@email.byu.edu) |
65 |
* @since 1.2 |
* @since 1.2 |
66 |
* @status partially updated to 1.4, still has some problems |
* @status partially updated to 1.4, still has some problems |
67 |
*/ |
*/ |
518 |
* or a bit-wise combination of TYPE_TRANSLATION, the mutually exclusive |
* or a bit-wise combination of TYPE_TRANSLATION, the mutually exclusive |
519 |
* TYPE_*_ROTATIONs, and the mutually exclusive TYPE_*_SCALEs. |
* TYPE_*_ROTATIONs, and the mutually exclusive TYPE_*_SCALEs. |
520 |
* |
* |
521 |
|
* @return The type. |
522 |
|
* |
523 |
* @see #TYPE_IDENTITY |
* @see #TYPE_IDENTITY |
524 |
* @see #TYPE_TRANSLATION |
* @see #TYPE_TRANSLATION |
525 |
* @see #TYPE_UNIFORM_SCALE |
* @see #TYPE_UNIFORM_SCALE |
1108 |
* transformation, so that no result will overwrite a point that has not yet |
* transformation, so that no result will overwrite a point that has not yet |
1109 |
* been evaluated. |
* been evaluated. |
1110 |
* |
* |
1111 |
* @param src the array of source points |
* @param srcPts the array of source points |
1112 |
* @param srcOff the starting offset into src |
* @param srcOff the starting offset into src |
1113 |
* @param dst the array of destination points |
* @param dstPts the array of destination points |
1114 |
* @param dstOff the starting offset into dst |
* @param dstOff the starting offset into dst |
1115 |
* @param num the number of points to transform |
* @param num the number of points to transform |
1116 |
* @throws NullPointerException if src or dst is null |
* @throws NullPointerException if src or dst is null |
1142 |
* transformation, so that no result will overwrite a point that has not yet |
* transformation, so that no result will overwrite a point that has not yet |
1143 |
* been evaluated. |
* been evaluated. |
1144 |
* |
* |
1145 |
* @param src the array of source points |
* @param srcPts the array of source points |
1146 |
* @param srcOff the starting offset into src |
* @param srcOff the starting offset into src |
1147 |
* @param dst the array of destination points |
* @param dstPts the array of destination points |
1148 |
* @param dstOff the starting offset into dst |
* @param dstOff the starting offset into dst |
1149 |
* @param num the number of points to transform |
* @param num the number of points to transform |
1150 |
* @throws NullPointerException if src or dst is null |
* @throws NullPointerException if src or dst is null |
1174 |
* storing the results in another array. This will not create a destination |
* storing the results in another array. This will not create a destination |
1175 |
* array. |
* array. |
1176 |
* |
* |
1177 |
* @param src the array of source points |
* @param srcPts the array of source points |
1178 |
* @param srcOff the starting offset into src |
* @param srcOff the starting offset into src |
1179 |
* @param dst the array of destination points |
* @param dstPts the array of destination points |
1180 |
* @param dstOff the starting offset into dst |
* @param dstOff the starting offset into dst |
1181 |
* @param num the number of points to transform |
* @param num the number of points to transform |
1182 |
* @throws NullPointerException if src or dst is null |
* @throws NullPointerException if src or dst is null |
1199 |
* storing the results in another array. This will not create a destination |
* storing the results in another array. This will not create a destination |
1200 |
* array. |
* array. |
1201 |
* |
* |
1202 |
* @param src the array of source points |
* @param srcPts the array of source points |
1203 |
* @param srcOff the starting offset into src |
* @param srcOff the starting offset into src |
1204 |
* @param dst the array of destination points |
* @param dstPts the array of destination points |
1205 |
* @param dstOff the starting offset into dst |
* @param dstOff the starting offset into dst |
1206 |
* @param num the number of points to transform |
* @param num the number of points to transform |
1207 |
* @throws NullPointerException if src or dst is null |
* @throws NullPointerException if src or dst is null |
1254 |
* transformation, so that no result will overwrite a point that has not yet |
* transformation, so that no result will overwrite a point that has not yet |
1255 |
* been evaluated. |
* been evaluated. |
1256 |
* |
* |
1257 |
* @param src the array of source points |
* @param srcPts the array of source points |
1258 |
* @param srcOff the starting offset into src |
* @param srcOff the starting offset into src |
1259 |
* @param dst the array of destination points |
* @param dstPts the array of destination points |
1260 |
* @param dstOff the starting offset into dst |
* @param dstOff the starting offset into dst |
1261 |
* @param num the number of points to transform |
* @param num the number of points to transform |
1262 |
* @throws NullPointerException if src or dst is null |
* @throws NullPointerException if src or dst is null |
1325 |
* [ y' ] [ m10 m11 ] [ y ] = [ m10 * x + m11 * y ] |
* [ y' ] [ m10 m11 ] [ y ] = [ m10 * x + m11 * y ] |
1326 |
* </pre> |
* </pre> |
1327 |
* |
* |
1328 |
* @param src the array of source points |
* @param srcPts the array of source points |
1329 |
* @param srcOff the starting offset into src |
* @param srcOff the starting offset into src |
1330 |
* @param dst the array of destination points |
* @param dstPts the array of destination points |
1331 |
* @param dstOff the starting offset into dst |
* @param dstOff the starting offset into dst |
1332 |
* @param num the number of points to transform |
* @param num the number of points to transform |
1333 |
* @throws NullPointerException if src or dst is null |
* @throws NullPointerException if src or dst is null |
1448 |
* Compares two transforms for equality. This returns true if they have the |
* Compares two transforms for equality. This returns true if they have the |
1449 |
* same matrix values. |
* same matrix values. |
1450 |
* |
* |
1451 |
* @param o the transform to compare |
* @param obj the transform to compare |
1452 |
* @return true if it is equal |
* @return true if it is equal |
1453 |
*/ |
*/ |
1454 |
public boolean equals(Object obj) |
public boolean equals(Object obj) |