Orthogonalprojection

Element

A point that is the orthogonal projection of a point onto a line.

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

The constructed point is the orthogonal projection of p onto l. Order can be changed.

Parameters
Name Type Description
p PointLike
l Line
Example

Project 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('orthogonalprojection', [p3, l1]);
Attributes

Own

none

Inherited

Members

Own

none

Inherited

Methods

Own

none

Inherited

Events

Own

none

Inherited

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 73

Extends