Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

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

Use Math#floorPowerOfTwo | .floorPowerOfTwo()

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

Parameters

value: number

Returns

number