Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 130181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:54:27+00:00 2026-05-11T05:54:27+00:00

I am writing an opengl based iphone app and would like to allow a

  • 0

I am writing an opengl based iphone app and would like to allow a user to translate around a view based on the direction that they move two fingers on the screen. For one finger I know I could just calculate the vector from the start position to the current position of the users finger and then find the unit vector of this to get just the direction, but I don’t know how I would do this for two fingers, I don’t think adding the components of the vectors and calculating the average would work so I’m pretty much stuck.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T05:54:27+00:00Added an answer on May 11, 2026 at 5:54 am

    Vector math works just like you think:

    v3 = (v1 + v2) / 2 

    Is equivalent to:

    v3.x = (v1.x + v2.x) / 2; v3.y = (v1.y + v2.y) / 2; v3.z = (v1.z + v2.z) / 2; 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing an app that heavily uses OpenGL; either on the Mac or on
I'm building an OpenGL based app - writing in native C/C++. I want to
I'm writing a fullscreen OpenGL app. Within that I'm going to present a big
I am writing a Cocoa OpenGL app and running my main loop with a
I'm interested in writing an OpenGL app in JOGL 2, using shaders instead of
i need a simple logging solution while writing Cocoa/OpenGL application in C++. I'd like:
I writing an application that draws in openGL es 1.0 in the Android NDK
I'm writing a simple OpenGL game with Haskell. Whenever the user resizes the window
A simplified example here: I have a game that I am writing in opengl
I'm writing a simple OpenGL application that uses GLUT . I don't want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.