SphericalPolynomial

Class representing spherical polynomial coefficients to the 3rd degree

Hierarchy

  • SphericalPolynomial

Index

Properties

x

Find examples in Playground

The x coefficients of the spherical polynomial

xx

Find examples in Playground

The xx coefficients of the spherical polynomial

xy

Find examples in Playground

The xy coefficients of the spherical polynomial

y

Find examples in Playground

The y coefficients of the spherical polynomial

yy

Find examples in Playground

The yy coefficients of the spherical polynomial

yz

Find examples in Playground

The yz coefficients of the spherical polynomial

z

Find examples in Playground

The z coefficients of the spherical polynomial

zx

Find examples in Playground

The zx coefficients of the spherical polynomial

zz

Find examples in Playground

The zz coefficients of the spherical polynomial

Methods

addAmbient

Find examples in Playground
  • addAmbient(color: Color3): void
  • Adds an ambient color to the spherical polynomial

    Parameters

    • color: Color3

      the color to add

    Returns void

scale

Find examples in Playground
  • scale(scale: number): void
  • Scales the spherical polynomial by the given amount

    Parameters

    • scale: number

      the amount to scale

    Returns void

Static FromArray

Find examples in Playground
  • Constructs a spherical polynomial from an array.

    Parameters

    • data: ArrayLike<ArrayLike<number>>

      defines the 9x3 coefficients (x, y, z, xx, yy, zz, yz, zx, xy)

    Returns SphericalPolynomial

    the spherical polynomial

Static FromHarmonics

Find examples in Playground

Generated using TypeDoc