Question: Using this information: If (P, Q) is the 2-point representation of a line, its point-vector representation is (P, unit(Q P )) Using Python to code...

Using this information:

If (P, Q) is the 2-point representation of a line, its point-vector representation is (P, unit(Q P ))

Using Python to code...

Translate from 2-point to point-vector representation of a line.

Params: PP (float 4-tuple): 2-point representation of a line: px,py,qx,qy

Returns: (float 4-tuple): point-vector rep of the line: px,py,vx,vy

note that the vector is unit

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!