Lines Matching refs:ptDst

2857      * in <code>ptDst</code>.
2858 * If <code>ptDst</code> is <code>null</code>, a new {@link Point2D}
2861 * In either case, <code>ptDst</code>, which contains the
2863 * If <code>ptSrc</code> and <code>ptDst</code> are the same
2867 * @param ptDst the specified <code>Point2D</code> that stores the
2869 * @return the <code>ptDst</code> after transforming
2870 * <code>ptSrc</code> and stroring the result in <code>ptDst</code>.
2873 public Point2D transform(Point2D ptSrc, Point2D ptDst) {
2874 if (ptDst == null) {
2876 ptDst = new Point2D.Double();
2878 ptDst = new Point2D.Float();
2889 ptDst.setLocation(x * m00 + y * m01 + m02,
2891 return ptDst;
2893 ptDst.setLocation(x * m00 + y * m01, x * m10 + y * m11);
2894 return ptDst;
2896 ptDst.setLocation(y * m01 + m02, x * m10 + m12);
2897 return ptDst;
2899 ptDst.setLocation(y * m01, x * m10);
2900 return ptDst;
2902 ptDst.setLocation(x * m00 + m02, y * m11 + m12);
2903 return ptDst;
2905 ptDst.setLocation(x * m00, y * m11);
2906 return ptDst;
2908 ptDst.setLocation(x + m02, y + m12);
2909 return ptDst;
2911 ptDst.setLocation(x, y);
2912 return ptDst;
2920 * If any element of the <code>ptDst</code> array is
2940 * @param ptDst the array into which the transform point objects are
2950 Point2D[] ptDst, int dstOff,
2958 Point2D dst = ptDst[dstOff++];
2965 ptDst[dstOff - 1] = dst;
3422 * result in <code>ptDst</code>.
3423 * If <code>ptDst</code> is <code>null</code>, a new
3426 * In either case, <code>ptDst</code>, which contains the transformed
3428 * If <code>ptSrc</code> and <code>ptDst</code> are the same
3432 * @param ptDst the resulting transformed point
3433 * @return <code>ptDst</code>, which contains the result of the
3439 public Point2D inverseTransform(Point2D ptSrc, Point2D ptDst)
3442 if (ptDst == null) {
3444 ptDst = new Point2D.Double();
3446 ptDst = new Point2D.Float();
3466 ptDst.setLocation((x * m11 - y * m01) / det,
3468 return ptDst;
3477 ptDst.setLocation(y / m10, x / m01);
3478 return ptDst;
3487 ptDst.setLocation(x / m00, y / m11);
3488 return ptDst;
3490 ptDst.setLocation(x - m02, y - m12);
3491 return ptDst;
3493 ptDst.setLocation(x, y);
3494 return ptDst;
3644 * <code>ptSrc</code> and stores the result in <code>ptDst</code>.
3653 * If <code>ptDst</code> is <code>null</code>, a new
3656 * In either case, <code>ptDst</code>, which contains the
3658 * If <code>ptSrc</code> and <code>ptDst</code> are the same object,
3662 * @param ptDst the resulting transformed distance vector
3663 * @return <code>ptDst</code>, which contains the result of the
3667 public Point2D deltaTransform(Point2D ptSrc, Point2D ptDst) {
3668 if (ptDst == null) {
3670 ptDst = new Point2D.Double();
3672 ptDst = new Point2D.Float();
3684 ptDst.setLocation(x * m00 + y * m01, x * m10 + y * m11);
3685 return ptDst;
3688 ptDst.setLocation(y * m01, x * m10);
3689 return ptDst;
3692 ptDst.setLocation(x * m00, y * m11);
3693 return ptDst;
3696 ptDst.setLocation(x, y);
3697 return ptDst;