Keeping this private for now. Making sure that the W component is always 1
| 19 | { |
| 20 | // Keeping this private for now. Making sure that the W component is always 1 |
| 21 | static inline float DistanceToPlane(Plane plane, dmVMath::Vector4 pos) |
| 22 | { |
| 23 | return dmVMath::Dot(plane, pos); // nx * px + ny * py + nz * pz + d*pw , pw - should be 1 |
| 24 | } |
| 25 | |
| 26 | float DistanceToPlane(Plane plane, dmVMath::Point3 pos) |
| 27 | { |