Class: DefSpherical

algeobra3d~DefSpherical(paramsopt)

Definition of spherical coordinates

Constructor

new DefSpherical(paramsopt)

Default values
Parameters:
Name Type Attributes Description
params Object <optional>
Properties
Name Type Attributes Description
r Number <optional>
The radius
phi Number <optional>
The phi angle
theta Number <optional>
The theta angle
Source:

Methods

compute(info) → {Object}

Compute the coordinates
Parameters:
Name Type Description
info CreateInfo The creation info
Source:
Returns:
Object of type TYPE_SPHERICAL
Type
Object

(static) fromValues(params) → {CreateInfo}

Computes the coordinates from values If any value is EMPTY, the default values are used
Parameters:
Name Type Description
params Object
Properties
Name Type Attributes Description
r Number | Object <optional>
Either the index or value of a TYPE_NUMBER. The radius
phi Number | Object <optional>
Either the index or value of a TYPE_NUMBER. The phi angle
theta Number | Object <optional>
Either the index or value of a TYPE_NUMBER. The theta angle
Source:
Returns:
The creation info
Type
CreateInfo