Class JXG.Circle3D
JXG.GeometryElement3D,JXG.GeometryElement
↳ JXG.Circle3D
Creates a new 3D circle object. Do not use this constructor to create a 3D circle. Use JXG.View3D#create with
type Circle3D instead.
Defined in: circle3d.js.
Extends
JXG.GeometryElement, JXG.GeometryElement3D.
Constructor Attributes | Constructor Name and Description |
---|---|
JXG.Circle3D(view, center, normal, radius, attributes)
In 3D space, a circle consists of all points on a given plane with a given distance from a given point.
|
- Fields borrowed from class JXG.GeometryElement3D:
- element2D, is3D, view
- Fields borrowed from class JXG.GeometryElement:
- _org_type, _pos, ancestors, baseElement, board, childElements, dash, dashScale, descendants, draft, dragToTopOfLayer, dump, elementClass, elType, fillColor, fillOpacity, fixed, frozen, gradient, gradientAngle, gradientCX, gradientCY, gradientEndOffset, gradientFR, gradientFX, gradientFY, gradientR, gradientSecondColor, gradientSecondOpacity, gradientStartOffset, hasLabel, highlight, highlighted, highlightFillColor, highlightFillOpacity, highlightStrokeColor, highlightStrokeOpacity, highlightStrokeWidth, id, inherits, isDraggable, isLabel, isReal, lastDragTime, layer, lineCap, methodMap, mouseover, name, needsRegularUpdate, needsUpdate, nonnegativeOnly, notExistingParents, numTraces, parents, precision, priv, quadraticform, rendNode, rotatable, scalable, shadow, snapToGrid, stdform, strokeColor, strokeOpacity, strokeWidth, subs, symbolic, tabindex, trace, traceAttributes, traces, transformations, transitionDuration, transitionProperties, type, viewport, visible, visProp, visPropCalc, withLabel
Field Attributes | Field Name and Description |
---|---|
The circle's center.
|
|
<private> |
A normal vector of the plane the circle lies in.
|
- Fields borrowed from class JXG.GeometryElement3D:
- element2D, is3D, view
- Fields borrowed from class JXG.GeometryElement:
- _org_type, _pos, ancestors, baseElement, board, childElements, dash, dashScale, descendants, draft, dragToTopOfLayer, dump, elementClass, elType, fillColor, fillOpacity, fixed, frozen, gradient, gradientAngle, gradientCX, gradientCY, gradientEndOffset, gradientFR, gradientFX, gradientFY, gradientR, gradientSecondColor, gradientSecondOpacity, gradientStartOffset, hasLabel, highlight, highlighted, highlightFillColor, highlightFillOpacity, highlightStrokeColor, highlightStrokeOpacity, highlightStrokeWidth, id, inherits, isDraggable, isLabel, isReal, lastDragTime, layer, lineCap, methodMap, mouseover, name, needsRegularUpdate, needsUpdate, nonnegativeOnly, notExistingParents, numTraces, parents, precision, priv, quadraticform, rendNode, rotatable, scalable, shadow, snapToGrid, stdform, strokeColor, strokeOpacity, strokeWidth, subs, symbolic, tabindex, trace, traceAttributes, traces, transformations, transitionDuration, transitionProperties, type, viewport, visible, visProp, visPropCalc, withLabel
Method Attributes | Method Name and Description |
---|---|
Radius(value)
Calculates the radius of the circle.
|
|
setRadius(r)
Set a new radius, then update the board.
|
- Methods borrowed from class JXG.GeometryElement:
- _set, addChild, addDescendants, addParents, addParentsFromJCFunctions, addRotation, addTicks, addTransform, animate, bounds, clearTrace, cloneToBackground, countChildren, createGradient, createLabel, draggable, formatNumberLocale, fullUpdate, generatePolynomial, getAttribute, getAttributes, getLabelAnchor, getName, getParents, getProperty, getSnapSizes, getTextAnchor, getType, handleSnapToGrid, hasPoint, hide, hideElement, noHighlight, normalize, prepareUpdate, remove, removeAllTicks, removeChild, removeDescendants, removeTicks, resolveShortcuts, setArrow, setAttribute, setDash, setDisplayRendNode, setLabel, setLabelText, setName, setParents, setPosition, setPositionDirectly, setProperty, show, showElement, snapToPoints, update, updateRenderer, updateVisibility, useLocale
- Events borrowed from class JXG.GeometryElement:
- attribute, attribute:key, down, drag, keydrag, mousedown, mousedrag, mousemove, mouseout, mouseover, mouseup, move, out, over, pendown, pendrag, penup, touchdown, touchdrag, touchup, up
Class Detail
JXG.Circle3D(view, center, normal, radius, attributes)
In 3D space, a circle consists of all points on a given plane with a given distance from a given point. The given point is called the center, and the given distance is called the radius.
A circle can be constructed by providing a center, a normal vector, and a radius (given as a number or function).
- Parameters:
- {JXG.View3D} view
- The 3D view the circle is drawn on.
- {JXG.Point} center
- The center of the circle.
- {Array} normal
- A normal vector of the plane the circle lies in. Must be either an array of three numbers or an array of three functions returning numbers.
- {Number|Function} radius
- The radius of the circle.
- {Object} attributes
Field Detail
{JXG.Point3D}
center
The circle's center. Do not set this parameter directly, as that will break JSXGraph's update system.
<private>
{Array}
normal
A normal vector of the plane the circle lies in. Do not set this parameter directly, as that will break JSXGraph's update system.
- See:
- updateNormal
Method Detail
{Number}
Radius(value)
Calculates the radius of the circle.
- Parameters:
- {String|Number|function} value Optional
- Set new radius
- Returns:
- {Number} The radius of the circle
{JXG.Circle3D}
setRadius(r)
Set a new radius, then update the board.
- Parameters:
- {String|Number|function} r
- A string, function or number describing the new radius
- Returns:
- {JXG.Circle3D} Reference to this sphere