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
Get step-by-step solutions from verified subject matter experts
