a)
code for P1: LEFT 0001
code for P2: TOP 1000
Slope: 1.0
Intersecton point: (15.0, 25.0), code: 0
Slope: 1.0
Intersecton point: (50.0, 60.0), code: 0
Line accepted from 15.00, 25.00 to 50.00, 60.00
b)
Dot product of a and b: 323
Cross product of a and b: [ -3 -19 4]
Comments
Leave a comment