Class: DefSphere

algeobra3d~DefSphere(params)

Definition of a sphere in 3D space

Constructor

new DefSphere(params)

Default values of a sphere
Parameters:
Name Type Description
params Object
Properties
Name Type Attributes Description
r Number <optional>
The sphere radius
center THREE.Vector3 <optional>
The sphere center
Source:

Methods

compute(info) → {Object}

Creates a sphere object
Parameters:
Name Type Description
info CreateInfo The creation info
Source:
Returns:
An object of type TYPE_SPHERE
Type
Object

(static) fromValues(params) → {CreateInfo}

Computes the sphere with the given radius or center. 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 point
center Number | Object <optional>
Either the index or value of a TYPE_POINT3. The center
Source:
Returns:
The creation info
Type
CreateInfo