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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:51:55+00:00 2026-05-21T11:51:55+00:00

I have a segment defined by two points: [x1,y1], [x2,y2]. What is the simplest

  • 0

I have a segment defined by two points: [x1,y1], [x2,y2].

What is the simplest method to cut it in two parts in a ratio between (1/2) and (1/4) ?

I want the coordinates of the third point [x3,y3] which cuts the above segment in two seperate parts ([x1,y1] , [x3,y3]) and ([x3,y3], [x2, y2])

I search for a very fast method, it must not be to accurate, the coordinates of the third point can be rounded up to integers.

  • 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-21T11:51:56+00:00Added an answer on May 21, 2026 at 11:51 am

    Thats just math, no complex algorithm needed.

    [|(x2 – x1)| / 2 + x2, |(y2 – y1)| / 2 + y2] gives you the cut at (1/2).

    [|(x2 – x1)| / 4 + x2, |(y2 – y1)| / 4 + y2] gives you the cut at (1/4).

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

Sidebar

Related Questions

I have a java servelet segment, which can generate a XML file and print
I have a text file which I'm trying to parse. The file looks like
I'm debugging a route matching issue in ASP.NET MVC. The URL is defined like
another Objective-C one for you, probably pretty obvious but I have been at this
I have a LoteModel: public function selecionar($where = NULL, $limit = NULL, $order_by =
I have an HTML page with some <code> segments, and I have given them
I have a form-1 which has 4 fields. when the user inputs data in
When I create a shared memory segment on Windows (like CreateFileMapping(INVALID_HANDLE_VALUE, ...) ), is
I just started playing with scala and have been using the Scala By Example
I currently develop an application that creates polygons from lines and I experience a

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.