Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/threejs_4_deno/src/Three.js>MathUtils.nextPowerOfTwo

A simple transformation of three.js for use within a Deno workflow
Go to Latest
function MathUtils.nextPowerOfTwo
Deprecated
Deprecated

Use Math#ceilPowerOfTwo | .ceilPowerOfTwo()

import { MathUtils } from "https://deno.land/x/threejs_4_deno@v121/src/Three.js";
const { nextPowerOfTwo } = MathUtils;

Parameters

value: number

Returns

number