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 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 line segment defined by these two points: A(x1,y1,z1) and B(x2,y2,z2) . I
I have two array and three button in segment control i want that when
i have Segment class who contain 2 sections , each section contain 2 point
I have two identical byte arrays in the following segment of code: /// <summary>
Im newbie here.I have a problem with codeigniter segment() method.I referred 6th segment of
I have a tableview with a segmentedControl in the header, i want the segment
Let's say you have a two dimensional plane with 2 points (called a and
I have a non-straight line defined by a series of x, y coordinate points.
I have four point p0 , p1 ,p1' , p2' , each defined by
I have an array of lines each defined by 2 points. I am working

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.