ArrowParallel

Element

A segment with an arrow head attached thath is parallel to a given segment. The segment is given by its defining two points, the arrow starts at the third given point.

Usage (signatures)
board.create('arrowparallel', [p1, p2, p]);

Parameters are [p1, p2, p]: The constructed arrow starts at p and has the same slope as the line through p1 and p2.

Parameters
Name Type Description
p1 PointLike
p2 PointLike
p PointLike
Example

Create an parallel arrow

var p1 = board.create('point', [0.0, 2.0]);
var p2 = board.create('point', [2.0, 1.0]);
var l1 = board.create('segment', [p1, p2]);

var p = board.create('point', [3.0, 3.0]);
var pl1 = board.create('arrowparallel', [p1, p2, p]);

Throws

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

Type
Error

Details

Type
Parallel
Source
element/composition.js, line 1118