Class SphericalPolynomial
Constructors
constructor
-
Returns SphericalPolynomial
Properties
x
The x coefficients of the spherical polynomial
xx
The xx coefficients of the spherical polynomial
xy
The xy coefficients of the spherical polynomial
y
The y coefficients of the spherical polynomial
yy
The yy coefficients of the spherical polynomial
yz
The yz coefficients of the spherical polynomial
z
The z coefficients of the spherical polynomial
zx
The zx coefficients of the spherical polynomial
zz
The zz coefficients of the spherical polynomial
Accessors
pre Scaled Harmonics
-
The spherical harmonics used to create the polynomials.
Returns SphericalHarmonics
Methods
add Ambient
-
Adds an ambient color to the spherical polynomial
Parameters
- color: Color3
the color to add
Returns void
- color: Color3
scale In Place
-
Scales the spherical polynomial by the given amount
Parameters
- scale: number
the amount to scale
Returns void
- scale: number
update From Harmonics
-
Updates the spherical polynomial from harmonics
Parameters
- harmonics: SphericalHarmonics
the spherical harmonics
Returns SphericalPolynomial
the spherical polynomial
- harmonics: SphericalHarmonics
StaticFrom Array
-
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
- data: ArrayLike<ArrayLike<number>>
StaticFrom Harmonics
-
Gets the spherical polynomial from harmonics
Parameters
- harmonics: SphericalHarmonics
the spherical harmonics
Returns SphericalPolynomial
the spherical polynomial
- harmonics: SphericalHarmonics
Class representing spherical polynomial coefficients to the 3rd degree