Search code examples
raytracingsymmetric

Finding the Projection without using projection matrix always but to use some symmetry


I am interested in finding the t2' with the help of t1, t1' and t2. Actually I am using some projection matrix T (this will be used to project point x and y which is clear in the Image attached) on x and y to get the points t1 and t2. Again I have to use the matrix T on x' and y' to find the t1' and t2'. But I don't want to exactly use the matrix T to do this just to avoid the lots of multiplication.

Is there any way to find t2' with the help of t1' and the result followed in the case of t1 and t1'.

T*x = t1
T*y = t2
t*x' = t1' 

I am attaching picture for better visibility of the question.

enter image description here


Solution

  • If there is a linear relationship between the variables, you can use that same relationship after applying T because T, being a linear transformation, will preserve those relationships.

    So, let's assume that the relationship you have verifies y - x = y' - x'. This assumption is consistent with the one you wrote in the comment because there y - x = (0, 1) and y'- x' = (0, 1) too.

    So, applying T to both sides of the equation we have: T(y - x) = T(y' - x'). Now, using that T preserves linear combinations (i.e., T(u + sv) = T(u) + sT(v) for all vectors u,v and scalars s), we get: Ty - Tx = Ty' - Tx'. With your variable names we get: t2 - t1 = t2' - t1'. Solving for t2' leads to t2' = t2 - t1 + t1'.

    If the actual relationship between x, y, x' and y' happens to be different but still linear you can apply the same reasoning to it.