Usage (signatures)
board.create('parallelogram', [p1, p2, p3]);
The parallelogram is a polygon through
the points [p1, p2, pp, p3], where pp is a parallelpoint, available as sub-object parallelogram.parallelPoint.
Parameters
| Name | Type | Description |
|---|---|---|
p1 |
PointLike | |
p2 |
PointLike | |
p3 |
PointLike |
Example
var p1 = board.create('point', [-3, -4]);
var p2 = board.create('point', [3, -1]);
var p3 = board.create('point', [-2, 0]);
var par = board.create('parallelogram', [p1, p2, p3], {
hasInnerPoints: true,
parallelpoint: {
size: 6,
face: '<<>>'
}
});
Attributes
Own
none
Inherited
Members
Own
parallelPoint : JXG.Point
- Description
Parallel point which makes the quadrilateral a parallelogram. Can also be accessed with parallelogram.vertices[2].
- Type
- JXG.Point
- Source
- base/polygon.js, line 1570
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
- Exception
Details
- Type
- Polygon
- Source
- base/polygon.js, line 1496