> dist = sqrt(P[X] * P[X] + P[Z] * P[Z]); > if (dist > EPSILON) > { > M[X] = Torus->R * P[X] / dist; > M[Y] = 0.0; > M[Z] = Torus->R * P[Z] / dist; > } > else > { > Make_Vector(M, 0.0, 0.0, 0.0); > } > VSub(N, P, M); I love it when seemingly difficult things are done so simply like this. - Slime [ http://www.slimeland.com/ ]
Post a reply to this message