Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

231
Views
Finding perpendicular and parallel points

How to find the points marked in a picture (P0', P1', P2 ', P3')

Points are known:

  • P0, P1, P2, P3
  • l1 and l2

Point = Vector3(x,y,z)

EDIT:

Initially I am trying to set the point P0'

var l1 = 1.2f;
var l2 = 0.7f;

var v30n = (P3 + P0).normalized;
var v10n = (P1 + P0).normalized;

var pl1 = P0 + v30n * l1;
var pl2 = P0 - v10n * l2;
var P0prim = pl1 + pl2;

enter image description here

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Careful with the directions:

var l1 = 1.2f;
var l2 = 0.7f;

var v30n = (P0 - P3).normalized; //corrected here
var v10n = (P0 - P1).normalized; //corrected here

var pl1 =  v30n * l1;
var pl2 = v10n * l2; // corrected here
var P0prim = P0 + pl1 + pl2;

Did not debug that out, but the direction is: (final point - starting point).normlized

over 4 years ago · Santiago Trujillo Report

0

What @rustyBucketBay says is the correct answer (he was faster than me!), but in case you know that the proportions of l1 and l2 are equals, you can also do the follow:

We know that If you sum all the X's and divide by 4 (the number of corners) and do the same for the Y's, you will have the center of the square.

So if we sum l1+l2 to every point of the square, and do the same, we will have the expected square but displaced. Now we want to relocate the center of the new big square.

To achieve that we only have to calculate the center of the new big square (again, divide by 4 X's and Y's) and calculate the vector between both square centers, the small one and the big one.

With this calculated vector, we can just sum it to the new big square points, and will be relocated.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!