Jump to content
  • Advertisement
Sign in to follow this  
de_matt

Plane from point and normal

This topic is 4852 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hya, I want to create a plane from a point (vector) and a normal (normalised vector). What I was gonna do is this p1 - ( a = Normal.x b = Normal.y c = Normal.z d = Pythag(Point, vec3(0,0,0)) } And then I was just gonna check the plane direction by computing the plane dot-coord of the original point (Point) and if it was <> 0 then * d by -1 because the plane would be the inverse of what I wanted. Is that right? Thanks Matt

Share this post


Link to post
Share on other sites
Advertisement
Oops, sorry.

I just found the function I needed in the D3D sdk.

Sorry again. If any moderators reading this, could you delete the thread

The function, by the way, is called D3DPlaneFromPointNormal (duh!)

Sorry.

Matt

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!