Home
last modified time | relevance | path

Searched refs:mag (Results 1 – 2 of 2) sorted by relevance

/development/ndk/platforms/android-4/samples/san-angeles/jni/
Ddemo.c620 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()
[all …]
/development/ndk/sources/android/ndk_helper/
DtapCamera.cpp304 float mag; in PointOnSphere() local
306 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()