Usage (signatures)
board.create('perpendicularsegment', [l, p]);
The perpendicular line will be orthogonal to l and will contain p. The perpendicular point is the intersection point of the two lines.
Order of parameters is irrelevant.
Parameters
| Name | Type | Description |
|---|---|---|
l |
Line | |
p |
PointLike |
Example
Create perpendicular the perpendicular segment from point p3 to line l1
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('perpendicularsegment', [l1, p3]);
Members
Own
point : PerpendicularPoint
- Description
Helper point
- Type
- PerpendicularPoint
- Source
- element/composition.js, line 567
Inherited
none
Throws
-
If the elements cannot be constructed with the given parent objects an exception is thrown.
- Type
- Error
Details
- Type
- JXG.Line
- Source
- element/composition.js, line 480