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

  • Home
  • SEARCH
  • 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 8799853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:26:01+00:00 2026-06-14T00:26:01+00:00

Test link: http://bit.ly/Runmah pick one item from left side for testing. it’s rotating when

  • 0

Test link: http://bit.ly/Runmah

pick one item from left side for testing.

it’s rotating when he find two intersect points on the line.

i want to move red rectangle within the polygon. It shouldn’t go outside of polygon.

My code is: http://pastebin.com/pRMpk81f

Edit 1: http://pastebin.com/C3j4WSC1

  • 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-14T00:26:02+00:00Added an answer on June 14, 2026 at 12:26 am

    If you know how to find the intersection of points on the line then you should be able to find distance between wall and furniture (line and edge of rectangle), you can check this value and for example stop draging and snap,

    EDIT1:
    when dragged item is selected (mouse is down) than you constantly check distance (e.g. on mouse move), then you can decide that if distance is within some threshold you will stop movement (basicaly you will set calculated position- snap – instead of applying mouse position) otherwise you will follow mouse.

    EDIT2:
    also you can test if the point is inside the shape by calculating intersection points – even number the point is outside, odd number – the point is inside

    best regards

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

Sidebar

Related Questions

http://steph.net23.net/work.php here is my test link. This page has a jquery script in it
How to vertically Align a text with a Select Option. Link: http://mink7.com/projects/test/dashboard.html
Demo link: http://elevation-inc.com/dev/test/ieform/ In IE 6/7/8 - if you enter a term into a
Quick update -- SQLFiddle link: http://sqlfiddle.com/#!2/d038f/2 I think it's a relatively straight forward one...
I am talking about one of these Dialog boxes that pop up: http://jquerymobile.com/test/docs/pages/page-dialogs.html (short
I'm a bit further along in converting some sample test/specs from Watir to Selenium.
Here is MSDN link From http://msdn.microsoft.com/en-us/library/s3f49ktz(v=VS.80).aspx It says: unsigned int : 4byte Range of
I have a code download image from link http://www.bitrepository.com/download-image.html When start is link format:
I am trying to test that a link dose exist on the page, I
I am having a link <a id=test href=text.php>test</a> I have the following jquery code

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.