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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:27:25+00:00 2026-05-24T07:27:25+00:00

This should be a simple matter, but for some reason I can’t grasp it.

  • 0

This should be a simple matter, but for some reason I can’t grasp it.

I have a parallelogram, defined as four points (in anti-clockwise order, but apart from that I do not know which corner is which). I also have the center point of the parallelogram, and it’s orientation (the angle it if “facing”). What I want to get is the midpoint of the line at the “front” of the parallelogram.
To do this, I imagine I would have to trace a ray from the midpoint, at the angle the parallelogram is facing, and check which of the four lines it intersects and where. This is where I’m stuck. I can’t figure out a formula to achieve this goal. Any ideas?

I am coding in C#, but this is a math problem more than anything, so I’ll accept a formula or psuedocode.

EDIT: It seems there has been a bit if confusion in my problem; apologies for that. I should have specified that I’m working with two dimensions, and the “front” is defined as the line on the parallelogram that intersects the ray generated by casting from the midpoint, at the angle provided (to the origin). As suggested in the comments, here is a diagram:

The Parallelogram

The orange points represent the corners of the parallelogram, the blue point is the centroid, and the yellow curve is the angle I am given. The purple line is simply parallel to the X-axis to help represent the angle. The grey line extending from the blue point is (a subsection of) the ray I mentioned previously, and thus the green point is the point I wish to calculate. Please also note that this diagram is just a sketch to help visualize the problem, and not generated by my program.
Hopefully this helps clear up any confusion.

  • 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-05-24T07:27:26+00:00Added an answer on May 24, 2026 at 7:27 am

    A bit brute-force and not elegant, but try this to get the coordinates of your green point (I hope it’s green anyway; I’m a bit color blind):

    1. You have four line segments. Calculate the equation of the line that contains each line segment (y = mx + b and all that). There will be four equations.
    2. Calculate the angle from your center point to each of your four parallelogram vertices.
    3. Determine which side your ray intersects by seeing which two angles your yellow angle is between. It will either intersect one of the sides, or one of the vertices. If you hit one of the vertices, you’re done.
    4. Otherwise, solve for the intersection of your ray (which has its own equation) with the appropriate equation for the appropriate side.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This should be a really really simple thing, but for some reason it is
I know this should be simple and I should know it but it's eluding
This should be a simple question, but I haven't been able to find a
This should hopefully be a simple one. I would like to add an extension
This should a quick question for some easy rep. I'm doing some PHP Website
This should be easy for many of you, but for me it's just another
This should be easy, but I'm not sure how to best go about it.
This should be straight forward for a guru. I don't have any code really
It seems like this should be straightforward but I'm boggling. I've got my listview
This is probably a simple question but i've been unable to find a quick

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.