Class Parallel
Extends
JXG.Line.
Constructor for a parallel line.
Defined in: Composition.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Parallel(l,p)
A parallel is a line through a given point with the same slope as a given line.
|
- Fields borrowed from class JXG.Line:
- defaultTicks, firstArrow, lastArrow, point1, point2, straightFirst, straightLast, ticks
- Fields borrowed from class JXG.GeometryElement:
- ancestors, board, childElements, dash, descendants, draft, fillColor, fillOpacity, fixed, hasLabel, highlightFillColor, highlightFillOpacity, highlightStrokeColor, highlightStrokeOpacity, highlightStrokeWidth, id, isReal, layer, name, needsRegularUpdate, needsUpdate, notExistingParents, numTraces, quadraticform, shadow, stdform, strokeColor, strokeOpacity, strokeWidth, symbolic, trace, traces, transformations, visible, visProp
- Methods borrowed from class JXG.Line:
- addTicks, addTransform, cloneToBackground, getRise, getSlope, hasPoint, removeAllTicks, removeTicks, setPosition, X, Y, Z
- Methods borrowed from class JXG.GeometryElement:
- addChild, addLabelToElement, animate, clearTrace, hideElement, highlight, labelColor, noHighlight, remove, setArrow, setProperty, showElement, update
Class Detail
Parallel(l,p)
A parallel is a line through a given point with the same slope as a given line.
// Create a parallel var p1 = board.create('point', [0.0, 2.0]); var p2 = board.create('point', [2.0, 1.0]); var l1 = board.create('line', [p1, p2]); var p3 = board.create('point', [3.0, 3.0]); var pl1 = board.create('parallel', [l1, p3]);
- Parameters:
- {JXG.Line_JXG.Point} l,p
- The constructed line contains p and has the same slope as l.
- Throws:
- {Exception}
- If the element cannot be constructed with the given parent objects an exception is thrown.