Class JXG.Point3D
JXG.GeometryElement3D,JXG.GeometryElement
↳ JXG.Point3D
Creates a new 3D point object. Do not use this constructor to create a 3D point. Use JXG.View3D#create with
type Point3D instead.
Defined in: point3d.js.
Extends
JXG.GeometryElement, JXG.GeometryElement3D.
Constructor Attributes | Constructor Name and Description |
---|---|
JXG.Point3D(view, F, slide, attributes)
A 3D point is the basic geometric element.
|
- 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 |
---|---|
<private> |
Store the last position of the 2D point for the optimizer.
|
<private> <static> |
JXG.Point3D.endpoints
Shadow points that determine the visible line.
|
- 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 |
---|---|
distance(pt)
Calculate the distance from one point to another.
|
|
<private> |
Initialize the coords array.
|
Check whether a point's homogeneous coordinate vector is zero.
|
- 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.Point3D(view, F, slide, attributes)
A 3D point is the basic geometric element.
- Parameters:
- {JXG.View3D} view
- The 3D view the point is drawn on.
- {Function|Array} F
- Array of numbers, array of functions or function returning an array with defines the user coordinates of the point.
- {JXG.GeometryElement3D} slide
- Object the 3D point should be bound to. If null, the point is a free point.
- {Object} attributes
- An object containing visual properties like in JXG.Options#point3d and JXG.Options#elements, and optional a name and an id.
Field Detail
<private>
{Array}
_params
Store the last position of the 2D point for the optimizer.
<private> <static>
{Array}
JXG.Point3D.endpoints
Shadow points that determine the visible line.
This is of relevance if the line is defined by two points and has straightFirst or straightLast set to true.
In such a case, the shadow points are the intersection of the line with the cube.
Defined in: linspace3d.js.
Defined in: linspace3d.js.
Method Detail
{Number}
distance(pt)
Calculate the distance from one point to another. If one of the points is on the plane at infinity, return positive infinity.
- Parameters:
- {JXG.Point3D} pt
- The point to which the distance is calculated.
- Returns:
- {Number} The distance
<private>
{Object}
initCoords()
Initialize the coords array.
- Returns:
- {Object} Reference to the Point3D object
{Boolean}
isIllDefined()
Check whether a point's homogeneous coordinate vector is zero.
- Returns:
- {Boolean} True if the coordinate vector is zero; false otherwise.