Method
G_ProjectSource
(
float[] point,
float[] distance,
float[] forward,
float[] right,
float[] result)
Source from the content-addressed store, hash-verified
| 437 | } |
| 438 | } |
| 439 | public static void G_ProjectSource( |
| 440 | float[] point, |
| 441 | float[] distance, |
| 442 | float[] forward, |
| 443 | float[] right, |
| 444 | float[] result) { |
| 445 | result[0] = point[0] + forward[0] * distance[0] + right[0] * distance[1]; |
| 446 | result[1] = point[1] + forward[1] * distance[0] + right[1] * distance[1]; |
| 447 | result[2] = point[2] + forward[2] * distance[0] + right[2] * distance[1] + distance[2]; |
| 448 | } |
| 449 | public static final float DotProduct(float[] x, float[] y) { |
| 450 | return x[0] * y[0] + x[1] * y[1] + x[2] * y[2]; |
| 451 | } |
Tested by
no test coverage detected