mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
plane now inherits from LVecBase4
This commit is contained in:
parent
0b1954afbc
commit
9e0459be64
@ -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])) {
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user