quadrilateralToQuadrilateral static method
PerspectiveTransform
quadrilateralToQuadrilateral(
- double x0,
- double y0,
- double x1,
- double y1,
- double x2,
- double y2,
- double x3,
- double y3,
- double x0p,
- double y0p,
- double x1p,
- double y1p,
- double x2p,
- double y2p,
- double x3p,
- double y3p,
)
Implementation
static PerspectiveTransform quadrilateralToQuadrilateral(
double x0,
double y0,
double x1,
double y1,
double x2,
double y2,
double x3,
double y3,
double x0p,
double y0p,
double x1p,
double y1p,
double x2p,
double y2p,
double x3p,
double y3p,
) {
final qToS = quadrilateralToSquare(x0, y0, x1, y1, x2, y2, x3, y3);
final sToQ = squareToQuadrilateral(x0p, y0p, x1p, y1p, x2p, y2p, x3p, y3p);
return sToQ.times(qToS);
}