linearly v0.32.0 • Docs
linearly v0.32.0 / mat2d / fromPoints
Function: fromPoints()
fromPoints(
first
,second
,third
?):mat2d
|null
Creates a matrix that maps from the given points to another. If the third point is not given, the orthogonal matrix is returned.
f-s f'-s'
|/ ---M--> |/
t t'
Parameters
a pair of first point
a pair of second point
a pair of third point
Returns
mat2d
| null