You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 23:16:20 +00:00
Move to Renderer V2
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
const toUint32 = (x: number) => x >>> 0;
|
||||
|
||||
export const ToInt32 = (x: number) =>
|
||||
{
|
||||
const uint32 = toUint32(x);
|
||||
|
||||
if(uint32 >= Math.pow(2, 31))
|
||||
{
|
||||
return uint32 - Math.pow(2, 32);
|
||||
}
|
||||
|
||||
return uint32;
|
||||
};
|
||||
Reference in New Issue
Block a user