Go to: Synopsis. Return value. MEL examples.
float [] lineIntersection(float $p1[], float $v1[],
float $p2[], float $v2[])
None
Variable Name | Variable Type | Description |
---|---|---|
$p1 | float[] | Starting point of first line |
$v1 | float[] | Vector direction of first line |
$p2 | float[] | Starting point of second line |
$v2 | float[] | Vector direction of second line |
float $p1[3] = {0,1,0}; float $v1[3] = {1,0,0}; float $p2[3] = {0,0,0}; float $v2[3] = {0,1,0}; lineIntersection($p1, $v1, $p2, $v2); // Results: 0 1 0 //