#130
FPlane相关
![]() |
/** * Calculates distance between plane and a point. * * @param P The other point. * @return >0: point is in front of the plane, <0: behind, =0: on the plane. */ FORCEINLINE float FPlane::PlaneDot(const FVector &P) const { return X * P.X + Y * P.Y + Z * P.Z - W; }
从其注释表明,这是计算点到Plane的距离的函数,同时要知道,Plane将空间分成了两部分,其法线正向所在的部分定义为正,另一部分定义为负。在正空间的点到Plane的距离为正,负空间的点到Plane的距离为负。
#189的解释简单直接
|