interseclineplane

Determine the existance of the intersection between the line with the points P1, P2 and planewith points A,B and C on it. Function returns point of intersection if exist.Depending on input, function can return scalar, vector or matrix

Arguments

  1. Point P1 x-coordinate
  2. Point P1 y-coordinate
  3. Point P1 z-coordinate
  4. Point P2 x-coordinate
  5. Point P2 y-coordinate
  6. Point P2 z-coordinate
  7. Point A x-coordinate
  8. Point A y-coordinate
  9. Point A z-coordinate
  10. Point B x-coordinate
  11. Point B y-coordinate
  12. Point B z-coordinate
  13. Point C x-coordinate
  14. Point C y-coordinate
  15. Point C z-coordinate

Output

Results: 0 - line and plane are parallel; 1 - line lies in plane; point of intersection

Examples

interseclineplane