Usage (signatures)
board.create('perpendicular', [l, p]);
The perpendicular line will be orthogonal to l and will contain p.
Parameters
| Name | Type | Description |
|---|---|---|
l |
Line | |
p |
PointLike |
Example
Create perpendicular to line l1 through point p3
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 perp1 = board.create('perpendicular', [l1, p3]);
Throws
-
If the elements cannot be constructed with the given parent objects an exception is thrown.
- Type
- Error
Returns
A JXG.Line object through the given point that is orthogonal to the given line.
Details
- Type
- JXG.Line
- Source
- element/composition.js, line 230