Searched refs:mag (Results 1 – 2 of 2) sorted by relevance
620 GLfloat mag; in gluLookAt() local628 mag = (float)sqrt(z[0] * z[0] + z[1] * z[1] + z[2] * z[2]); in gluLookAt()629 if (mag) { /* mpichler, 19950515 */ in gluLookAt()630 z[0] /= mag; in gluLookAt()631 z[1] /= mag; in gluLookAt()632 z[2] /= mag; in gluLookAt()655 mag = (float)sqrt(x[0] * x[0] + x[1] * x[1] + x[2] * x[2]); in gluLookAt()656 if (mag) { in gluLookAt()657 x[0] /= mag; in gluLookAt()658 x[1] /= mag; in gluLookAt()[all …]
304 float mag; in PointOnSphere() local306 mag = vec.Dot( vec ); in PointOnSphere()307 if( mag > 1.f ) in PointOnSphere()309 float scale = 1.f / sqrtf( mag ); in PointOnSphere()315 ball_mouse = Vec3( vec, sqrtf( 1.f - mag ) ); in PointOnSphere()