Appearance
copper3d / Modules / Utils/utils
Module: Utils/utils
Table of contents
Functions
- H3
- L3
- calcDistance
- fullScreenListenner
- getWightsH3H3H3
- getWightsL3L3L3
- isIOS
- loading
- perturbRandom
- switchEraserSize
- switchPencilIcon
- throttle
- traverseMaterials
Functions
H3
▸ H3(x
): number
[]
Cubic-Hermite basis function.
Parameters
Name | Type |
---|---|
x | number |
Returns
number
[]
Defined in
L3
▸ L3(x
): number
[]
Cubic-Lagrange basis function
Parameters
Name | Type |
---|---|
x | number |
Returns
number
[]
Defined in
calcDistance
▸ calcDistance(x0
, x1
): number
Euclidean distance n dimensions
Parameters
Name | Type |
---|---|
x0 | number [] |
x1 | number [] |
Returns
number
Defined in
fullScreenListenner
▸ fullScreenListenner(container
): void
Parameters
Name | Type |
---|---|
container | HTMLDivElement | HTMLCanvasElement |
Returns
void
Defined in
getWightsH3H3H3
▸ getWightsH3H3H3(Xi
): number
[][]
Parameters
Name | Type |
---|---|
Xi | number [][] |
Returns
number
[][]
Defined in
getWightsL3L3L3
▸ getWightsL3L3L3(Xi
): number
[]
To calculate the weights for each element of Xi using the cubic Lagrange basis functions.
Parameters
Name | Type |
---|---|
Xi | number [] |
Returns
number
[]
Defined in
isIOS
▸ isIOS(): boolean
Returns
boolean
Defined in
loading
▸ loading(loadingGif?
): Object
Parameters
Name | Type |
---|---|
loadingGif? | string |
Returns
Object
Name | Type |
---|---|
loadingContainer | HTMLDivElement |
progress | HTMLDivElement |
Defined in
perturbRandom
▸ perturbRandom(x
, dx
): number
[]
Parameters
Name | Type |
---|---|
x | number [] |
dx | number |
Returns
number
[]
Defined in
switchEraserSize
▸ switchEraserSize(size
, urls?
): string
Parameters
Name | Type |
---|---|
size | number |
urls? | string [] |
Returns
string
Defined in
switchPencilIcon
▸ switchPencilIcon(icon
, urls?
): string
Parameters
Name | Type |
---|---|
icon | string |
urls? | string [] |
Returns
string
Defined in
throttle
▸ throttle(callback
, wait
): (event
: MouseEvent
) => void
Parameters
Name | Type |
---|---|
callback | (event : MouseEvent ) => void |
wait | number |
Returns
fn
▸ (event
): void
Parameters
Name | Type |
---|---|
event | MouseEvent |
Returns
void
Defined in
traverseMaterials
▸ traverseMaterials(object
, callback
): void
Parameters
Name | Type |
---|---|
object | Group <Object3DEventMap > |
callback | (material : any ) => void |
Returns
void