Learn a bit about the symmetry of a straight line in Flash (53) every day

Source: Internet
Author: User

Find the right of a (3, 1) on the linear x + Y-1 = 0

Best Answer

If the coordinate of the symmetric point is B (X, Y), the midpoint coordinate of AB is (3 + x)/2, (1 + Y)/2), and it is in a straight line.

(3 + x)/2 + (1 + Y)/2-1 = 0

(Y-1)/(X-3) = 1... (the slope of AB is 1)

Solution: x = 0, y =-2

 

Flash applications:

 

This is a problem on the Internet. It seems that it is not difficult at all.

Suppose we have a vertex A (x1, Y1), a straight line AX + by + c = 0 (or Y = kx + B ), the symmetric point B (X2, Y2) that requires this point. We know that the link between the two points is the line AB of the vertical line. According to the known conditions, ax + BYD + c = 0 slope k, then the slope of the line AB is the reciprocal to the negative,-1/K ,.

 

T =-1/K;, t = (y2-y1)/(x2-x1 );

The midpoint of AB is C (X1 + x2)/2, (Y1 + y2)/2 );

Place the intersection point into the straight line AX + by + c = 0 (y = kx + B ),

There are already two equations, and now the coordinates of point B are X2, y2.

The application here is very useful.

 

Suppose we have changed the coordinates of a to the coordinates of the mouse (xmouse, ymouse), and then we can change some results.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.