Usage (signatures)
board.create('normal', [o, p]);
The constructed line contains p which lies on the object o and is orthogonal to the tangent to the object in the given point.
Parameters
| Name | Type | Description |
|---|---|---|
o |
Line | Circle | Curve | Turtle | |
p |
Point |
Example
// Create a normal to a circle.
var p1 = board.create('point', [2.0, 2.0]);
var p2 = board.create('point', [3.0, 2.0]);
var c1 = board.create('circle', [p1, p2]);
var norm1 = board.create('normal', [c1, p2]);
board.create('normal', [p]);
Works like above, however the object is given by JXG.CoordsElement#slideObject, i.e. the element to which the glider is bound to.
Parameters
| Name | Type | Description |
|---|---|---|
p |
Glider |
Example
// Create a normal to a circle.
var p1 = board.create('point', [2.0, 2.0]);
var c1 = board.create('circle', [p1, 2]);
var gl = board.create('glider', [4, 4, c1]);
var norm1 = board.create('normal', [gl]);
Attributes
Own
point
- Description
Attributes of helper point of normal.
- Type
- Point
- Source
- options.js, line 7883
Inherited
Members
Own
point : JXG.Point
- Description
A helper point used to create a normal to a JXG.Line object. For normals to circles or curves this element is
undefined.- Type
- JXG.Point
- Source
- base/line.js, line 2619
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.Line
- Source
- base/line.js, line 2496