Usage (signatures)
board.create('intersectioncircle3d', [el1, el2]);
The result will be the intersection of el1 and el2.
Parameters
| Name | Type | Description |
|---|---|---|
el1 |
Sphere3D | |
el2 |
Sphere3D | Plane3D |
Example
Create the intersection circle of two spheres
var view = board.create(
'view3d',
[[-6, -3], [8, 8],
[[0, 3], [0, 3], [0, 3]]],
{
xPlaneRear: {fillOpacity: 0.2, gradient: null},
yPlaneRear: {fillOpacity: 0.2, gradient: null},
zPlaneRear: {fillOpacity: 0.2, gradient: null}
}
);
var a1 = view.create('point3d', [-1, 0, 0]);
var a2 = view.create('point3d', [1, 0, 0]);
var s1 = view.create(
'sphere3d',
[a1, 2],
{fillColor: '#00ff80'}
);
var s2 = view.create(
'sphere3d',
[a2, 2],
{fillColor: '#ff0000'}
);
var i = view.create('intersectioncircle3d', [s1, s2]);
Attributes
Own
none
Inherited
Members
Own
none
Inherited
Methods
Own
none
Inherited
Events
Own
none
Inherited
Throws
-
If the element cannot be constructed with the given parent objects an exception is thrown.
- Type
- Exception
Details
- Type
- JXG.Circle3D
- Source
- 3d/circle3d.js, line 328