Matlab mirror transformation (2D)

1. Introduction

Mirror transformation is a very interesting process. It has a general routine (taking 2D as an example): a point can be mirrored around a given symmetry axis by translating a point on the symmetry axis and then rotating it so that the symmetry axis is aligned with the x-axis. Align, then we set the y coordinate of the rotated point to negative, and finally rotate and translate the symmetry axis to the original position, then we can get a mirror point. Furthermore, a similar sequence of transformations is followed in three-dimensional space.

2. Implement the code

%% ********

おすすめ

転載: blog.csdn.net/dayuhaitang1/article/details/134820553