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

x/threejs_4_deno/src/math/SphericalHarmonics3.d.ts>SphericalHarmonics3

A simple transformation of three.js for use within a Deno workflow
Go to Latest
class SphericalHarmonics3
import { SphericalHarmonics3 } from "https://deno.land/x/threejs_4_deno@v121/src/math/SphericalHarmonics3.d.ts";

Constructors

new
SphericalHarmonics3()

Properties

coefficients: Vector3[]
readonly
isSphericalHarmonics3: true

Methods

fromArray(array: number[], offset?: number): this

Sets the values of this spherical harmonics from the provided array.

fromArray(array: ArrayLike<number>, offset?: number): this

Sets the values of this spherical harmonics from the provided 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