| Parameter | Description |
|---|---|
| a | Vector to project. |
| ontoB | Non-zero vector to project onto. |
| defaultValue | Default value to return if projection is not finite. |
float2 Vector projection of a onto b or the default value.
Compute vector projection of a onto b. If result is not finite, then return the default value instead.
This function performs extra checks to see if the result of projecting a onto b is finite. If you know that your inputs will generate a finite result or you don't care if the result is finite, then you can call math.project instead which is faster than this function.
| Parameter | Description |
|---|---|
| a | Vector to project. |
| ontoB | Non-zero vector to project onto. |
| defaultValue | Default value to return if projection is not finite. |
float3 Vector projection of a onto b or the default value.
Compute vector projection of a onto b. If result is not finite, then return the default value instead.
This function performs extra checks to see if the result of projecting a onto b is finite. If you know that your inputs will generate a finite result or you don't care if the result is finite, then you can call math.project instead which is faster than this function.
| Parameter | Description |
|---|---|
| a | Vector to project. |
| ontoB | Non-zero vector to project onto. |
| defaultValue | Default value to return if projection is not finite. |
float4 Vector projection of a onto b or the default value.
Compute vector projection of a onto b. If result is not finite, then return the default value instead.
This function performs extra checks to see if the result of projecting a onto b is finite. If you know that your inputs will generate a finite result or you don't care if the result is finite, then you can call math.project instead which is faster than this function.
| Parameter | Description |
|---|---|
| a | Vector to project. |
| ontoB | Non-zero vector to project onto. |
| defaultValue | Default value to return if projection is not finite. |
double2 Vector projection of a onto b or the default value.
Compute vector projection of a onto b. If result is not finite, then return the default value instead.
This function performs extra checks to see if the result of projecting a onto b is finite. If you know that your inputs will generate a finite result or you don't care if the result is finite, then you can call math.project instead which is faster than this function.
| Parameter | Description |
|---|---|
| a | Vector to project. |
| ontoB | Non-zero vector to project onto. |
| defaultValue | Default value to return if projection is not finite. |
double3 Vector projection of a onto b or the default value.
Compute vector projection of a onto b. If result is not finite, then return the default value instead.
This function performs extra checks to see if the result of projecting a onto b is finite. If you know that your inputs will generate a finite result or you don't care if the result is finite, then you can call math.project instead which is faster than this function.
| Parameter | Description |
|---|---|
| a | Vector to project. |
| ontoB | Non-zero vector to project onto. |
| defaultValue | Default value to return if projection is not finite. |
double4 Vector projection of a onto b or the default value.
Compute vector projection of a onto b. If result is not finite, then return the default value instead.
This function performs extra checks to see if the result of projecting a onto b is finite. If you know that your inputs will generate a finite result or you don't care if the result is finite, then you can call math.project instead which is faster than this function.