Attributes
Own
none
Inherited
Members
Own
(private) aux2D : Array
- Description
Elements supporting the 2D representation.
- Type
- Array
- Source
- 3d/sphere3d.js, line 106
center : JXG.Point3D
- Description
The sphere's center. Do not set this parameter directly, as that will break JSXGraph's update system.
- Type
- JXG.Point3D
- Source
- 3d/sphere3d.js, line 84
element2D : GeometryElement
- Description
The 2D representation of the element.
- Type
- GeometryElement
- Overrides
- JXG.GeometryElement3D#element2D
- Source
- 3d/sphere3d.js, line 99
method : String
- Description
The construction method. Can be:
'twoPoints'- The sphere is defined by its center and a point on the sphere.'pointRadius'- The sphere is defined by its center and its radius in user units.
- Type
- String
- See
- Source
- 3d/sphere3d.js, line 78
point2 : JXG.Point3D
- Description
A point on the sphere; only set if the construction method is 'twoPoints'. Do not set this parameter directly, as that will break JSXGraph's update system.
- Type
- JXG.Point3D
- See
- Source
- 3d/sphere3d.js, line 91
projectionType : String
- Description
The type of projection (
'parallel'or'central') that the sphere is currently drawn in.- Type
- String
- Source
- 3d/sphere3d.js, line 112
Inherited
Methods
Own
Radius(valueopt) → {Number}
Calculates the radius of the circle.
Parameters
| Name | Type | Attributes | Description |
|---|---|---|---|
value |
String | Number | function |
<optional> |
Set new radius |
Returns
The radius of the circle
- Type
- Number
Details
- Source
- 3d/sphere3d.js, line 203
setRadius(r) → {JXG.Sphere3D}
Set a new radius, then update the board.
Parameters
| Name | Type | Description |
|---|---|---|
r |
String | Number | function | A string, function or number describing the new radius |
Returns
Reference to this sphere
- Type
- JXG.Sphere3D
Details
- Source
- 3d/sphere3d.js, line 190
Inherited
Events
Own
none
Inherited
Parameters
| Name | Type | Description |
|---|---|---|
view |
JXG.View3D | The 3D view the sphere is drawn on. |
method |
String | Can be:
The parameters |
par1 |
Point3D | The center of the sphere. |
par2 |
Point3D | Can be:
|
attributes |
Object | An object containing visual properties like in JXG.Options#point3d and JXG.Options#elements, and optional a name and an id. |
Details
- See
- Source
- 3d/sphere3d.js, line 61