Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
312 views
in Technique[技术] by (71.8m points)

math - Reflection matrix for an arbitrary plane

I have seen the HouseHolder equation which creates an matrix that reflects an point about an plane but the equation assumes the plane only has a normal vector v.

My plane has 3 components

The normal unit vector              V
A point that lies on the plane      P
Distance of the plane from origin   D

All stored in seperate variables.

How would I extend the equation to take the point and distance into its calculation or do I need a different approach?

question from:https://stackoverflow.com/questions/65919995/reflection-matrix-for-an-arbitrary-plane

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

(I found out the solution anyway so here it is)

The aforementioned householder equation also suppose that your plan contains the origin. So we cannot directly apply to your solution.

However let consider P as the new origin, x coordinates in this system are now x - P and the plan goes by the origin, its normal remains the same so you can compute S the symetrie of x in this system thanks to the HouseHolder equation:

S' = (x-p) - 2v(v^h(x-p)).

and you can get its coordinate in the original system :

S(x) = (x-p) - 2v(v^h(x-p)) + p


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...