In
The two objects may be written by
The proximity or intersection maybe given by
which may be represented by this extrema equation:
The equations may be re-written by
or
With convention of column vector
the equations will be re-written by
So, the solution of parameters is
unless
If singular, to separate singular (freed) and non-singular (constraint) components, we need to diagonalize it. We may try SVD to avoid catastrophic result.
where
The parameters will be rotated by the orthogonal matrices to diagonalize the matrix to see the free variable.
where in the rows with the zero values in
Now, substitute the indefinite numbers to free parameters
Also, we can find the shortest distance using the equation and the solution. The squared distance is
No comments:
Post a Comment