Yusheng C.

asked • 11/27/20

Find four points on a plane

This question comes from a coding project, so If there is any confusion please let me know.

I have two points (x1,y1,z1) (x2,y2,z2) which form a line. And I have a third point on the line (x3,y3,z3) where a plane across it and perpendicular to the line.

The (x3,y3,z3) calculate by [x1 + ratio * (x2 - x1), y1 + ratio * (y2 - y1), z1 + ratio * (z1 - z2)]; where ratio can be any number postive number below one.

Back on that plane, I need to figure out four points which layout like the graph below:

(I can't pasted a graph so I just describe it as much as I can)

Four points on the top right, top left, bottom right, botton left of the point(x3,y3,z3) and on that plane. Each takes 6 unit to the left or right and 6 unit to the up or down.

And suppose I know the line's rotation degree around the x-axis y-axis and z-axis which is given as pitch, roll, yall

How can I get the coordination of those four points?


1 Expert Answer

By:

Patrick B. answered • 02/11/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.