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.SphericalHarmonics3

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

Constructors

new
SphericalHarmonics3()

Properties

coefficients: Vector3[]
readonly
isSphericalHarmonics3: true

Methods

clone(): this
fromArray(array: number[] | ArrayLike<number>, offset?: number): this

Sets the values of this spherical harmonics from the provided array or array-like.

getAt(normal: Vector3, target: Vector3): Vector3
set(coefficients: Vector3[]): SphericalHarmonics3
toArray(array?: number[], offset?: number): number[]

Returns an array with the values of this spherical harmonics, or copies them into the provided array.

toArray(array: ArrayLike<number>, offset?: number): ArrayLike<number>

Returns an array with the values of this spherical harmonics, or copies them into the provided array-like.

Static Methods

getBasisAt(normal: Vector3, shBasis: number[]): void