PerpendicularPoint

Element

Orthogonal projection of a point onto a line.

A perpendicular point is given by a point and a line. It is determined by projecting the given point orthogonal onto the given line. This element should be used in GEONExTReader only. All other applications should use orthogonal projection Orthogonalprojection.

Usage (signatures)
board.create('perpendicularpoint', [p, l]);

The constructed point is the orthogonal projection of p onto l. Order of parameters is irrelevant.

Parameters
Name Type Description
p PointLike
l Line
Example

Orthogonal projection of point p3 onto line l1

var p1 = board.create('point', [0.0, 4.0]);
var p2 = board.create('point', [6.0, 1.0]);
var l1 = board.create('line', [p1, p2]);
var p3 = board.create('point', [3.0, 3.0]);

var pp1 = board.create('perpendicularpoint', [p3, l1]);

Throws

If the element cannot be constructed with the given parent objects an exception is thrown.

Type
Error

Details

Type
JXG.Point
Source
element/composition.js, line 325