Options
All
  • Public
  • Public/Protected
  • All
Menu

Class representing spherical polynomial coefficients to the 3rd degree

Hierarchy

  • SphericalPolynomial

Index

Constructors

Properties

The x coefficients of the spherical polynomial

The xx coefficients of the spherical polynomial

The xy coefficients of the spherical polynomial

The y coefficients of the spherical polynomial

The yy coefficients of the spherical polynomial

The yz coefficients of the spherical polynomial

The z coefficients of the spherical polynomial

The zx coefficients of the spherical polynomial

The zz coefficients of the spherical polynomial

Accessors

  • The spherical harmonics used to create the polynomials.

    Returns SphericalHarmonics

Methods

  • addAmbient(color: Color3): void
  • Adds an ambient color to the spherical polynomial

    Parameters

    • color: Color3

      the color to add

    Returns void

  • scaleInPlace(scale: number): void
  • Scales the spherical polynomial by the given amount

    Parameters

    • scale: number

      the amount to scale

    Returns void

  • Updates the spherical polynomial from harmonics

    Parameters

    Returns SphericalPolynomial

    the spherical polynomial

  • 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

  • Gets the spherical polynomial from harmonics

    Parameters

    Returns SphericalPolynomial

    the spherical polynomial

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Static method

Settings

Theme