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 8111527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T02:09:27+00:00 2026-06-06T02:09:27+00:00

I wrote a C# program that uses the mouse and it works perfectly. I

  • 0

I wrote a C# program that uses the mouse and it works perfectly. I now wish to implement touch support. The problem is that I track the mouse a lot and use the Point and Point3D classes throughout the program. When I use touch, I need to track where the “mouse” moves. I can get the coordinates of the touch but that’s where I get stuck. I am using the Helix 3D Toolkit and most functions require a Point or Point3D input parameter. My question is, is there any way to convert the TouchPoint into a Point or Point3D? Or is there any other “easy” way to implement touch support?

Here is a little code of what I’m trying to do:

private Point3D? GetPoints(TouchEventArgs e)
{
    var p = e.GetTouchPoint(ViewPort);
    var ray = Viewport3DHelper.Point2DtoRay3D(ViewPort.Viewport, p); //error here at p
    if (ray != null)
    {
        var pi = ray.PlaneIntersection(new Point3D(0, 0, 0), new Vector3D(0, 0, 1));
        if (pi.HasValue)
            return pi;
    }
    return null;
}
  • 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. Editorial Team
    Editorial Team
    2026-06-06T02:09:31+00:00Added an answer on June 6, 2026 at 2:09 am

    Figured it out. I just made a new Point() with p.Bounds.X and p.Bounds.Y.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The problem is this: I wrote a simple program that uses FFMPEG. compile as
I wrote a program on Ubuntu 11.04 that uses freeglut. It worked fine. Then
I wrote a small program that uses Mechanize to traverse a site. I want
I am having a problem in my program that uses pipes. What I am
I wrote a program that uses OLE and it was working fine until I
I wrote a form based program in C# that uses MS access database to
I wrote an application that uses sqlite and it works great on most of
I wrote a program that uses builtin function bin(), but this function is new
I wrote a program that uses a QWebPage to retrieve websites. Is there a
I wrote a program, that uses a shared library installed on my system. This

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.