Lines Matching refs:mag
620 GLfloat mag; in gluLookAt() local
628 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()
659 x[2] /= mag; in gluLookAt()
662 mag = (float)sqrt(y[0] * y[0] + y[1] * y[1] + y[2] * y[2]); in gluLookAt()
663 if (mag) { in gluLookAt()
664 y[0] /= mag; in gluLookAt()
665 y[1] /= mag; in gluLookAt()
666 y[2] /= mag; in gluLookAt()