Constructor
new DefPlane(params, infiniteopt)
Default values
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
|||||||||||||||||
infinite |
Boolean |
<optional> |
Whether or not the plane is infinite or is bound by its spanning vectors |
- Source:
Methods
compute(info) → {Object}
Computes the plane
Parameters:
Name | Type | Description |
---|---|---|
info |
CreateInfo | The creation info |
- Source:
Returns:
A plane of type TYPE_PLANE
- Type
- Object
(static) fromPlane(plane, paramsopt) → {CreateInfo}
Computes a new plane from another given plane
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
plane |
Number | Object | Either the index or value of a TYPE_PLANE. The reference plane | |||||||||||||||||||||||||||||
params |
Object |
<optional> |
Properties
|
- Source:
Returns:
The creation info
- Type
- CreateInfo
(static) fromPoints(p0, p1, p2, paramsopt) → {CreateInfo}
Computes the plane for the given values
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
p0 |
Number | Object | Either the index or value of a TYPE_POINT3. The first point | |||||||||||||
p1 |
Number | Object | Either the index or value of a TYPE_POINT3. The second point | |||||||||||||
p2 |
Number | Object | Either the index or value of a TYPE_POINT3. The third point | |||||||||||||
params |
Object |
<optional> |
Properties
|
- Source:
Returns:
The creation info
- Type
- CreateInfo
(static) fromValues(params, normalizeAxesopt) → {CreateInfo}
Computes the plane for the given values
If any value is EMPTY, the default values are used
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
|||||||||||||||||||||
normalizeAxes |
Boolean |
<optional> |
If true, the given spanning vectors will be normalized |
- Source:
Returns:
The creation info
- Type
- CreateInfo