mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-26 18:13:47 +00:00
clean up math varsize complaints
This commit is contained in:
parent
1230d0d280
commit
0ce2da3a23
30 changed files with 61 additions and 56 deletions
|
|
@ -209,7 +209,7 @@ inline F32 mFmod(const F32 val, const F32 mod)
|
|||
|
||||
inline S32 mRound(const F32 val)
|
||||
{
|
||||
return (S32)floor(val + 0.5f);
|
||||
return (S32)floor(F64(val + 0.5f));
|
||||
}
|
||||
|
||||
inline F32 mRound(const F32 val, const S32 n)
|
||||
|
|
|
|||
|
|
@ -915,7 +915,7 @@ inline bool mIsNaN( const Point2F &p )
|
|||
/// Return negative if p0p1p2 are clockwise
|
||||
inline F64 mCross(const Point2F &p0, const Point2F &p1, const Point2F &pt2)
|
||||
{
|
||||
return (p1.x - p0.x) * (pt2.y - p0.y) - (p1.y - p0.y) * (pt2.x - p0.x);
|
||||
return F64(p1.x - p0.x) * F64(pt2.y - p0.y) - F64(p1.y - p0.y) * F64(pt2.x - p0.x);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue