Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/remapper/src/deps.ts>three.MathUtils.pingpong

A framework for Beat Saber map scripting.
Go to Latest
function three.MathUtils.pingpong
import { three } from "https://deno.land/x/remapper@2.1.0/src/deps.ts";
const { pingpong } = three.MathUtils;

Returns a value that alternates between 0 and length.

Parameters

x: number

The value to pingpong.

optional
length: number

The positive value the export function will pingpong to. Default is 1.

Returns

number