问题
I am trying to find the equivalent point from one triangle to another.
Ideally I want to be able to give the 3 points of triangle A and the 3 points of triangle B which will then calculate the transform matrix which I can apply to the point afterwards to find the equivalent point.
I have found a few JavaScript libraries/methods for this, but they all use quadrilaterals rather than triangles and I am not sure what to do to apply to a triangle instead.
回答1:
Three point pairs can define affine transform, but can not define perspective one (four pairs needed).
How to find affine transform matrix using inverse matrix: 2 3
来源:https://stackoverflow.com/questions/43509195/perspective-transform-triangle-point