projective_trans_hom_point_3d — Project a homogeneous 3D point using a projective transformation matrix.
projective_trans_hom_point_3d applies the homogeneous projective transformation matrix HomMat3D to all homogeneous input points (Px,Py,Pz,Pw) and returns an array of homogeneous output points (Qx,Qy,Qz,Qw). The transformation is described by the homogeneous transformation matrix given in HomMat3D. This corresponds to the following equation (input and output points as homogeneous vectors):
/ Qx \ / Px \ | Qy | = HomMat3D * | Py | | Qz | | Pz | \ Qw / \ Pw /
To transform the homogeneous coordinates to Euclidean coordinates, they must be divided by Qw:
(Ex,Ey,Ez) = (Qx/Qw,Qy/Qw,Qz/Qw)
This can be achieved directly by calling projective_trans_point_3d. Thus, projective_trans_hom_point_3d is primarily useful for transforming points or point sets for which the resulting points might lie in the plane at infinity, i.e., points that potentially have Qw = 0, for which the above division cannot be performed.
Homogeneous projective transformation matrix.
Input point (x coordinate).
Input point (y coordinate).
Input point (z coordinate).
Input point (w coordinate).
Output point (x coordinate).
Output point (y coordinate).
Output point (z coordinate).
Output point (w coordinate).