In this article, we will learn how to find the mirror image position of a point in a 2D plane along with C++ implementation of the approach.
Table of contentsProblem StatementMirror EquationImplementationCodeProblem Statement
Given a point P(x1,y1) in 2-D plane, find the image of the point P(x1,y1) formed due to the mirror.
Sample input :
(5,1)
Sample output :
Image -> (1,5)
Mirror Equation
In order to get mirror image we must have a mirror first.
You can observe in this image that mirror...
Published on November 25, 2021 07:11