Jump to content


Which directx function calculates distance from point to plane?


2 replies to this topic

#1 ikk

    Member

  • Members
  • PipPip
  • 87 posts

Posted 13 October 2005 - 03:13 PM

is it D3DXPlaneDotNormal?
i also would like to know how to get plane normal vector.
thanks in advance

#2 .oisyn

    DevMaster Staff

  • Moderators
  • 1810 posts

Posted 13 October 2005 - 03:16 PM

the (a, b, c) components form the plane's normal. Use the *DotCoord function to get the distance (DotNormal makes no sense since your using a point (coord), not a normal)
C++ addict
-
Currently working on: the 3D engine for Tomb Raider.

#3 ikk

    Member

  • Members
  • PipPip
  • 87 posts

Posted 13 October 2005 - 03:22 PM

thanx, D3DXPlaneDotCoord function works.
but how to get plane normal?

EDIT: oh sory i didnt noticed

Quote

the (a, b, c) components






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users