Constructor
new DefVector3(paramsopt)
Default values
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
<optional> |
Properties
|
- Source:
Methods
compute(info) → {Object}
Computes the vector
Parameters:
Name | Type | Description |
---|---|---|
info |
CreateInfo | The creation info |
- Source:
Returns:
An object of type TYPE_VECTOR3
- Type
- Object
(static) fromLineRef(line, paramsopt) → {CreateInfo}
Computes the vector from a line.
The vector is attached to the first point of the line and points to the second.
If any value is EMPTY, the default values are used
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line |
Number | Object | Either the index or value of a TYPE_LINE3. The line | |||||||||||||
params |
Object |
<optional> |
Properties
|
- Source:
Returns:
The creation info
- Type
- CreateInfo
(static) fromSpherical(params) → {CreateInfo}
Computes the vector from spherical coordinates
If any value is EMPTY, the default values are used
Parameters:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
- Source:
Returns:
The creation info
- Type
- CreateInfo
(static) fromValues(params) → {CreateInfo}
Computes the vector from values
If any value is EMPTY, the default values are used
Parameters:
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
- Source:
Returns:
The creation info
- Type
- CreateInfo
(static) fromVectorRef(params) → {CreateInfo}
Computes the vector from another vector
If any value is EMPTY, the default values are used
Parameters:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
- Source:
Returns:
The creation info
- Type
- CreateInfo