mirror of https://github.com/AxioDL/zeus.git
Add CPlane::pointToPlaneDistance
This commit is contained in:
parent
bf9404811c
commit
b6a1241678
|
@ -50,6 +50,11 @@ public:
|
||||||
d = nd * mag;
|
d = nd * mag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
float pointToPlaneDist(const zeus::CVector3f& pos) const
|
||||||
|
{
|
||||||
|
return pos.dot(vec) - d;
|
||||||
|
}
|
||||||
|
|
||||||
union {
|
union {
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue