mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-19 14:43:47 +00:00
Update mPoint4.h
This commit is contained in:
parent
80bd8f8117
commit
ef9d33bc68
1 changed files with 6 additions and 4 deletions
|
|
@ -193,10 +193,12 @@ inline Point4F& Point4F::operator/=(F32 scalar)
|
|||
if (mIsZero(scalar))
|
||||
return *this;
|
||||
|
||||
x /= scalar;
|
||||
y /= scalar;
|
||||
z /= scalar;
|
||||
w /= scalar;
|
||||
F32 denom = 1 / scalar;
|
||||
|
||||
x *= denom;
|
||||
y *= denom;
|
||||
z *= denom;
|
||||
w *= denom;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue