| Parameter | Description |
|---|---|
| n | Vector to conditionally flip. |
| i | First vector in direction comparison. |
| ng | Second vector in direction comparison. |
float2 -n if i and ng point in the same direction; otherwise return n unchanged.
Conditionally flips a vector n if two vectors i and ng are pointing in the same direction. Returns n if dot(i, ng) < 0, -n otherwise.
| Parameter | Description |
|---|---|
| n | Vector to conditionally flip. |
| i | First vector in direction comparison. |
| ng | Second vector in direction comparison. |
float3 -n if i and ng point in the same direction; otherwise return n unchanged.
Conditionally flips a vector n if two vectors i and ng are pointing in the same direction. Returns n if dot(i, ng) < 0, -n otherwise.
| Parameter | Description |
|---|---|
| n | Vector to conditionally flip. |
| i | First vector in direction comparison. |
| ng | Second vector in direction comparison. |
float4 -n if i and ng point in the same direction; otherwise return n unchanged.
Conditionally flips a vector n if two vectors i and ng are pointing in the same direction. Returns n if dot(i, ng) < 0, -n otherwise.
| Parameter | Description |
|---|---|
| n | Vector to conditionally flip. |
| i | First vector in direction comparison. |
| ng | Second vector in direction comparison. |
double2 -n if i and ng point in the same direction; otherwise return n unchanged.
Conditionally flips a vector n if two vectors i and ng are pointing in the same direction. Returns n if dot(i, ng) < 0, -n otherwise.
| Parameter | Description |
|---|---|
| n | Vector to conditionally flip. |
| i | First vector in direction comparison. |
| ng | Second vector in direction comparison. |
double3 -n if i and ng point in the same direction; otherwise return n unchanged.
Conditionally flips a vector n if two vectors i and ng are pointing in the same direction. Returns n if dot(i, ng) < 0, -n otherwise.
| Parameter | Description |
|---|---|
| n | Vector to conditionally flip. |
| i | First vector in direction comparison. |
| ng | Second vector in direction comparison. |
double4 -n if i and ng point in the same direction; otherwise return n unchanged.
Conditionally flips a vector n if two vectors i and ng are pointing in the same direction. Returns n if dot(i, ng) < 0, -n otherwise.