Class: DefPoint3

algeobra3d~DefPoint3(popt)

Definition of a point in 3D space

Constructor

new DefPoint3(popt)

Default values
Parameters:
Name Type Attributes Description
p THREE.Vector3 <optional>
The point
Source:

Methods

compute(info) → {Object}

Computes the point
Parameters:
Name Type Description
info CreateInfo The creation info
Source:
Returns:
Object of type TYPE_POINT3
Type
Object

(static) fromSpherical(sopt) → {CreateInfo}

Computes the point from spherical coordinates
Parameters:
Name Type Attributes Description
s Number | Object <optional>
Either the index or value of a TYPE_SPHERICAL. The spherical coordinates
Source:
Returns:
The creation info
Type
CreateInfo

(static) fromValues(params) → {CreateInfo}

Computes the point from values If any value is EMPTY, the default values are used
Parameters:
Name Type Description
params Object
Properties
Name Type Attributes Description
x Number | Object <optional>
Either the index or value of a TYPE_NUMBER. The x coordinate
y Number | Object <optional>
Either the index or value of a TYPE_NUMBER. The y coordinate
z Number | Object <optional>
Either the index or value of a TYPE_NUMBER. The z coordinate
Source:
Returns:
The creation info
Type
CreateInfo