plane now inherits from LVecBase4

This commit is contained in:
David Rose 2003-10-25 19:07:48 +00:00
parent 0b1954afbc
commit 9e0459be64
2 changed files with 2 additions and 2 deletions

View File

@ -207,7 +207,7 @@ fill_viz_geom() {
LVector3f p1, p2, p3, p4;
LVector3f normal = get_normal();
float D = _plane._d;
float D = _plane[3];
if (fabs(normal[0]) > fabs(normal[1]) &&
fabs(normal[0]) > fabs(normal[2])) {

View File

@ -945,7 +945,7 @@ to_3d(const LVecBase2f &point2d) const {
nassertr(!point2d.is_nan(), LPoint3f(0.0f, 0.0f, 0.0f));
LVector3f normal = get_normal();
float D = get_plane()._d;
float D = get_plane()[3];
nassertr(!normal.is_nan(), LPoint3f(0.0f, 0.0f, 0.0f));
nassertr(!cnan(D), LPoint3f(0.0f, 0.0f, 0.0f));