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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:13:54+00:00 2026-05-26T16:13:54+00:00

I would like to write a function that takes a 3d triangle (as 3

  • 0

I would like to write a function that takes a 3d triangle (as 3 points (vector3ds)) and returns a 2d triangle (as 3 points (vector2ds)):

When given a 3d triangle, it should return the 2 dimensional coordinates of its points as they lie on its plane. (By ‘its plane’ I mean the plane that all three points lie on).

I can think a long winded way todo this:

  • rotate the triangle until its normal is equal to +z (0,0,1), then construct a triangle from the (x, y) coords of each point.

I cant help but think there must be an easier way to achieve the same thing.

If posting code examples please try not to use Greek alphabet. Some pseudo code in a C/java style language would be ideal.

  • 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-26T16:13:55+00:00Added an answer on May 26, 2026 at 4:13 pm

    From your comments I infer that you can choose the coordinate system of the plane in an arbitrary way, as long as the Euclidean metric of this coordinate system is the same as the metric induced by the Euclidean metric of your three-dimensional coordinate system. (That is, Euclidean distances will stay the same.)

    One possible solution:

    x0' = 0
    y0' = 0
    
    x1' = sqrt((x1 - x0)^2 + (y1 - y0)^2 + (z1 - z0)^2)
    y1' = 0
    
    x2' = ((x1 - x0) * (x2 - x0) + 
           (y1 - y0) * (y2 - y0) + 
           (z1 - z0) * (z2 - z0)) / x1'
    y2' = sqrt((x2 - x0)^2 + (y2 - y0)^2 + (z2 - z0)^2 - x2'^2)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to write a mysql function that takes an integer as input
I would like to write a function that takes a function f as an
I would like to write an OCaml function which takes a URL and returns
I would like to write a wrapper around a custom function that takes some
I would like to write a function that takes in 3 characters and increments
I'd like to write a function that would have some optional code to be
In Python, I'd like to write a function that would pretty-print its results to
I would like to write a cross-platform function in C++ that contains system calls.
I need to write a function that takes a list and bisects it (like
I would like to write a small tool that takes a C++ program (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.