How can i find one point inside an arc..?

This is a discussion on How can i find one point inside an arc..? within the C++ Programming forums, part of the General Programming Boards category; Hi, in One App i need to fine, is a mouse point inside a sector(Part of an arc) or not, ...

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    1

    Unhappy How can i find one point inside an arc..?

    Hi,

    in One App i need to fine, is a mouse point inside a sector(Part of an arc) or not,

    we know the center, radius and the point...

    How can we find in which sector we clicked..?

    Thanks for helping...

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,832
    point inside arc - Google Search

    Where is your code which looks something like this?
    Code:
    bool isPointInsideArc ( arcType arc, pointType point ) {
      bool result = false;
      // what to do here
      return result;
    }
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Drawing Program
    By Max_Payne in forum C++ Programming
    Replies: 21
    Last Post: 12-21-2007, 05:34 PM
  2. Classes & Collections
    By Max_Payne in forum C++ Programming
    Replies: 7
    Last Post: 12-11-2007, 01:06 PM
  3. const Point& and const Point are same
    By noobcpp in forum C++ Programming
    Replies: 5
    Last Post: 06-30-2007, 02:39 AM
  4. linked list inside array of structs- Syntax question
    By rasmith1955 in forum C Programming
    Replies: 14
    Last Post: 02-28-2005, 05:16 PM
  5. more with my 1st structure program
    By sballew in forum C Programming
    Replies: 42
    Last Post: 10-22-2001, 09:03 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21