Go to: Synopsis. Return value. MEL examples.
float[] crossProduct( float $v1[], float $v2[],
int $normalizeInputs, int $normalizeResult )
None
Variable Name | Variable Type | Description |
---|---|---|
$v1 | float[] | First vector |
$v2 | float[] | Second vector |
$normalizeInputs | int | 1 means normalize $v1, $v2 before calculation |
$normalizeResult | int | 1 means normalize the return value |
float $v1[3] = {1,2,3}; float $v2[3] = {4,5,6}; crossProduct($v1, $v2, 0, 0); // Results: -3 6 -3 //