# Reflection Matrix in 2D

Reflection Matrix in 2D

Here is a simple setup of a manipulation and reflection matrix in 2D space.

By using a reflection matrix, we can determine the coordinates of the point , the reflected image of the point in the line defined by the vector from the origin.

P

1

P

L=(u,v)

The projection of onto the line is . The point is then determined by extending the segment by . As vectors, .

P

P

0

P

1

PP

0

|PP|

0

P=2P-P

1

0

If is normalized (so that , the reflection matrix is . Then , that is, the reflection of a reflection is the identity. Also, .

L

u+v=1)

2

2

R=

1-2v 2 | 2uv |

2uv | -1+2v 2 |

R·R=I

2

det(R)=-1