Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- d = dists[ i ] / ( dists[ i ] - dists[ i + 1 ] );
- - for ( j = 0; j < 3; j++ )
- - {
- - e = v[ j ] + d * ( v[ j + 3 ] - v[ j ] );
- - newv[ 0 ][ newc[ 0 ] ][ j ] = e;
- - newv[ 1 ][ newc[ 1 ] ][ j ] = e;
- - }
- + vec3_t temp;
- + float *nextvec = vec + 3;
- + VectorSubtract( nextvec, vec, temp );
- + VectorMA( vec, d, temp, temp );
- + VectorCopy( temp, newv[ 0 ][ newc[ 0 ] ] );
- + VectorCopy( temp, newv[ 1 ][ newc[ 1 ] ] );
Add Comment
Please, Sign In to add comment