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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:54:55+00:00 2026-06-01T17:54:55+00:00

I got a Plane (Normal, d) and a Vector3 point (x, y, z). I

  • 0
  • I got a Plane (Normal, d) and a Vector3 point (x, y, z).
  • I need to translate the plane to that point for X distance. How do I do that?

I’m coming up with this..

plane = Plane.Transform(plane, Matrix.CreateTranslation(

But can’t figure what to place there. It has to be something with dot product, Plane.Normal and my Vector3.

EDIT:

I’m thinking of this.

public static Plane MoveTo(this Plane p, Vector3 point, float distance)
{
    Vector3 planeVector = p.Normal * p.D;

    Matrix matrix = Matrix.CreateTranslation(Vector3.Normalize(planeVector)) *
        distance * Math.Sign(Vector3.Dot(planeVector, point - planeVector))

    return Plane.Transform(p, matrix);
}

If someone considers this as wrong or particually wrong, please, note it.

  • 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-06-01T17:54:56+00:00Added an answer on June 1, 2026 at 5:54 pm

    The distance from a point P to the plane Pi is:

    enter image description here

    enter image description here

    You should calc current d(P, pi), substract to that the amount X, and then only have to calculate D to get the new plane.

    EDIT:

     // This line has no sense... is useless do that.
     Vector3 planeVector = p.Normal * p.D;  
    

    To know the relation between a point and a plane, you only have to calculate its equation: R = Ax + By + Cz + D where (A,B,C) is the normal and (x,y,z) the point…

    if (R == 0) the point is contained in the plane
    if (R>0) the point is front // or viceversa
    if (R<0) that point is back

    R = plane.DotCoordinate(point);    
    distance*=(R>0) ? 1 : -1; // or viceversa, i'm not sure now
    Matrix matrix = Matrix.CreateTranslation(plane.Normal * distance);
    return Plane.Transform(p, matrix);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is for debugging purpose. I've got a for loop that generates some output
Got this code, that only works when alert (markers.length); is uncommented. When this javascript
I understand that this question may seem somewhat ungrounded, but if someone knows anything
I've got a little objective-c utility program that renders a convex hull. (This is
I've got a maintenance plan that executes weekly in the off hours. It's always
I got this url /search/renttype-all.place-all.type-all.bedrooms-all.0.0/ I want to get the text after the second
i got some problem and need help .. my plan : 1. get ip
I'm doing a webapp and need a backup plan. Here's what I've got so
I've got a arbitrary collection of 3d points, i know they're coplanar, but how
I've got something happening with a little app that I made that I don't

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.