Searched refs:Vec2 (Results 1 – 9 of 9) sorted by relevance
/development/ndk/sources/android/ndk_helper/ |
D | tapCamera.h | 38 Vec2 vec_ball_center_; 42 Vec2 vec_ball_now_; 43 Vec2 vec_ball_down_; 50 Vec2 vec_pinch_start_; 51 Vec2 vec_pinch_start_center_; 65 Vec2 vec_drag_delta_; 66 Vec2 vec_last_input_; 71 Vec2 vec_flip_; 79 Vec3 PointOnSphere( Vec2& point ); 85 void BeginDrag( const Vec2& vec ); [all …]
|
D | tapCamera.cpp | 54 vec_flip_ = Vec2( 1.f, -1.f ); in TapCamera() 58 vec_ball_center_ = Vec2( 0, 0 ); in TapCamera() 59 vec_ball_now_ = Vec2( 0, 0 ); in TapCamera() 60 vec_ball_down_ = Vec2( 0, 0 ); in TapCamera() 62 vec_pinch_start_ = Vec2( 0, 0 ); in TapCamera() 63 vec_pinch_start_center_ = Vec2( 0, 0 ); in TapCamera() 65 vec_flip_ = Vec2( 0, 0 ); in TapCamera() 80 vec_drag_delta_ = Vec2(); in InitParameters() 101 Vec2 v = vec_drag_delta_; in Update() 102 BeginDrag( Vec2() ); //NOTE:This call reset _VDragDelta in Update() [all …]
|
D | vecmath.h | 34 class Vec2; variable 43 class Vec2 55 Vec2() in Vec2() function 60 Vec2( const float fX, const float fY ) in Vec2() function 66 Vec2( const Vec2& vec ) in Vec2() function 72 Vec2( const float* pVec ) in Vec2() function 79 Vec2 operator*( const Vec2& rhs ) const 81 Vec2 ret; 87 Vec2 operator/( const Vec2& rhs ) const 89 Vec2 ret; [all …]
|
D | gestureDetector.h | 140 bool GetPointers( Vec2& v1, Vec2& v2 ); 162 bool GetPointer( Vec2& v );
|
D | gestureDetector.cpp | 225 bool PinchDetector::GetPointers( Vec2& v1, Vec2& v2 ) in GetPointers() 244 v1 = Vec2( x, y ); in GetPointers() 245 v2 = Vec2( x2, y2 ); in GetPointers() 332 bool DragDetector::GetPointer( Vec2& v ) in GetPointer() 344 v = Vec2( x, y ); in GetPointer()
|
/development/ndk/platforms/android-17/samples/Teapot/jni/ |
D | TeapotNativeActivity.cpp | 64 void TransformPosition( ndk_helper::Vec2& vec ); 234 ndk_helper::Vec2 v; in HandleInput() 241 ndk_helper::Vec2 v; in HandleInput() 255 ndk_helper::Vec2 v1; in HandleInput() 256 ndk_helper::Vec2 v2; in HandleInput() 266 ndk_helper::Vec2 v1; in HandleInput() 267 ndk_helper::Vec2 v2; in HandleInput() 391 void Engine::TransformPosition( ndk_helper::Vec2& vec ) in TransformPosition() 393 vec = ndk_helper::Vec2( 2.0f, 2.0f ) * vec in TransformPosition() 394 / ndk_helper::Vec2( gl_context_->GetScreenWidth(), gl_context_->GetScreenHeight() ) in TransformPosition() [all …]
|
/development/ndk/platforms/android-18/samples/MoreTeapots/jni/ |
D | MoreTeapotsNativeActivity.cpp | 74 void TransformPosition( ndk_helper::Vec2& vec ); 245 ndk_helper::Vec2 v; in HandleInput() 252 ndk_helper::Vec2 v; in HandleInput() 266 ndk_helper::Vec2 v1; in HandleInput() 267 ndk_helper::Vec2 v2; in HandleInput() 277 ndk_helper::Vec2 v1; in HandleInput() 278 ndk_helper::Vec2 v2; in HandleInput() 402 void Engine::TransformPosition( ndk_helper::Vec2& vec ) in TransformPosition() 404 vec = ndk_helper::Vec2( 2.0f, 2.0f ) * vec in TransformPosition() 405 / ndk_helper::Vec2( gl_context_->GetScreenWidth(), gl_context_->GetScreenHeight() ) in TransformPosition() [all …]
|
D | MoreTeapotsRenderer.h | 98 std::vector<ndk_helper::Vec2> vec_rotations_; 99 std::vector<ndk_helper::Vec2> vec_current_rotations_;
|
D | MoreTeapotsRenderer.cpp | 131 vec_rotations_.push_back( ndk_helper::Vec2( fX * 0.05f, fY * 0.05f ) ); in Init() 132 vec_current_rotations_.push_back( ndk_helper::Vec2( fX * M_PI, fY * M_PI ) ); in Init()
|