mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
comment out perf-reducing nasserts
This commit is contained in:
parent
11d54502a2
commit
a8a4d8199f
@ -194,8 +194,8 @@ get_col2(int col) const {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE FLOATTYPE &FLOATNAME(LMatrix3)::
|
||||
operator () (int row, int col) {
|
||||
nassertr(row >= 0 && row < 3, _data[0]);
|
||||
nassertr(col >= 0 && col < 3, _data[0]);
|
||||
// nassertr(row >= 0 && row < 3, _data[0]);
|
||||
// nassertr(col >= 0 && col < 3, _data[0]);
|
||||
return _data[row * 3 + col];
|
||||
}
|
||||
|
||||
@ -206,8 +206,8 @@ operator () (int row, int col) {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE FLOATTYPE FLOATNAME(LMatrix3)::
|
||||
operator () (int row, int col) const {
|
||||
nassertr(row >= 0 && row < 3, 0.0);
|
||||
nassertr(col >= 0 && col < 3, 0.0);
|
||||
// nassertr(row >= 0 && row < 3, 0.0);
|
||||
// nassertr(col >= 0 && col < 3, 0.0);
|
||||
return _data[row * 3 + col];
|
||||
}
|
||||
|
||||
@ -232,8 +232,8 @@ is_nan() const {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE FLOATTYPE FLOATNAME(LMatrix3)::
|
||||
get_cell(int row, int col) const {
|
||||
nassertr(row >= 0 && row < 3, 0.0);
|
||||
nassertr(col >= 0 && col < 3, 0.0);
|
||||
// nassertr(row >= 0 && row < 3, 0.0);
|
||||
// nassertr(col >= 0 && col < 3, 0.0);
|
||||
return _data[row * 3 + col];
|
||||
}
|
||||
|
||||
@ -244,8 +244,8 @@ get_cell(int row, int col) const {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE void FLOATNAME(LMatrix3)::
|
||||
set_cell(int row, int col, FLOATTYPE value) {
|
||||
nassertv(row >= 0 && row < 3);
|
||||
nassertv(col >= 0 && col < 3);
|
||||
// nassertv(row >= 0 && row < 3);
|
||||
// nassertv(col >= 0 && col < 3);
|
||||
_data[row * 3 + col] = value;
|
||||
}
|
||||
|
||||
|
@ -336,8 +336,8 @@ is_nan() const {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE FLOATTYPE FLOATNAME(LMatrix4)::
|
||||
get_cell(int row, int col) const {
|
||||
nassertr(row >= 0 && row < 4, 0.0);
|
||||
nassertr(col >= 0 && col < 4, 0.0);
|
||||
// nassertr(row >= 0 && row < 4, 0.0);
|
||||
// nassertr(col >= 0 && col < 4, 0.0);
|
||||
return _data[row * 4 + col];
|
||||
}
|
||||
|
||||
@ -348,8 +348,8 @@ get_cell(int row, int col) const {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE void FLOATNAME(LMatrix4)::
|
||||
set_cell(int row, int col, FLOATTYPE value) {
|
||||
nassertv(row >= 0 && row < 4);
|
||||
nassertv(col >= 0 && col < 4);
|
||||
// nassertv(row >= 0 && row < 4);
|
||||
// nassertv(col >= 0 && col < 4);
|
||||
_data[row * 4 + col] = value;
|
||||
}
|
||||
|
||||
|
@ -144,7 +144,7 @@ is_nan() const {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE FLOATTYPE FLOATNAME(LVecBase2)::
|
||||
get_cell(int i) const {
|
||||
nassertr(i >= 0 && i < 2, 0);
|
||||
// nassertr(i >= 0 && i < 2, 0);
|
||||
return _data[i];
|
||||
}
|
||||
|
||||
@ -175,7 +175,7 @@ get_y() const {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE void FLOATNAME(LVecBase2)::
|
||||
set_cell(int i, FLOATTYPE value) {
|
||||
nassertv(i >= 0 && i < 2);
|
||||
// nassertv(i >= 0 && i < 2);
|
||||
_data[i] = value;
|
||||
}
|
||||
|
||||
|
@ -153,7 +153,7 @@ is_nan() const {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE FLOATTYPE FLOATNAME(LVecBase3)::
|
||||
get_cell(int i) const {
|
||||
nassertr(i >= 0 && i < 3, 0);
|
||||
// nassertr(i >= 0 && i < 3, 0);
|
||||
return _data[i];
|
||||
}
|
||||
|
||||
@ -194,7 +194,7 @@ get_z() const {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE void FLOATNAME(LVecBase3)::
|
||||
set_cell(int i, FLOATTYPE value) {
|
||||
nassertv(i >= 0 && i < 3);
|
||||
// nassertv(i >= 0 && i < 3);
|
||||
_data[i] = value;
|
||||
}
|
||||
|
||||
|
@ -164,7 +164,7 @@ is_nan() const {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE FLOATTYPE FLOATNAME(LVecBase4)::
|
||||
get_cell(int i) const {
|
||||
nassertr(i >= 0 && i < 4, 0);
|
||||
// nassertr(i >= 0 && i < 4, 0);
|
||||
return _data[i];
|
||||
}
|
||||
|
||||
@ -215,7 +215,7 @@ get_w() const {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE void FLOATNAME(LVecBase4)::
|
||||
set_cell(int i, FLOATTYPE value) {
|
||||
nassertv(i >= 0 && i < 4);
|
||||
// nassertv(i >= 0 && i < 4);
|
||||
_data[i] = value;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user