mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
*** empty log message ***
This commit is contained in:
parent
636a13e186
commit
8da0ae3359
@ -199,7 +199,7 @@ template<class NumType>
|
||||
INLINE bool LVector2<NumType>::
|
||||
normalize() {
|
||||
NumType l2 = length_squared();
|
||||
if (l2 == 0.0) {
|
||||
if (l2 == (NumType)0.0) {
|
||||
set(0.0, 0.0);
|
||||
return false;
|
||||
|
||||
|
@ -211,7 +211,7 @@ template<class NumType>
|
||||
INLINE bool LVector3<NumType>::
|
||||
normalize() {
|
||||
NumType l2 = length_squared();
|
||||
if (l2 == 0.0) {
|
||||
if (l2 == (NumType)0.0) {
|
||||
set(0.0, 0.0, 0.0);
|
||||
return false;
|
||||
|
||||
|
@ -222,7 +222,7 @@ template<class NumType>
|
||||
INLINE bool LVector4<NumType>::
|
||||
normalize() {
|
||||
NumType l2 = length_squared();
|
||||
if (l2 == 0.0) {
|
||||
if (l2 == (NumType)0.0) {
|
||||
set(0.0, 0.0, 0.0, 0.0);
|
||||
return false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user