Class: Vector
Vector(vertA, vertB)
new Vector(vertA, vertB)
The constructor.
Parameters:
Name | Type | Description |
---|---|---|
vertA |
Vertex | The start vertex of the vector. |
vertB |
Vertex | The end vertex of the vector. |
Extends
Methods
intersection(line) → {Vertex}
Get the intersection if this line and the specified line.
Parameters:
Name | Type | Description |
---|---|---|
line |
Line | The second line. |
- Overrides:
- Source:
Returns:
The intersection (may lie outside the end-points).
- Type
- Vertex
toSVGString(optionsopt) → {string}
Create an SVG representation of this line.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
object |
<optional> |
A set of options, like 'className'. |
- Overrides:
- Source:
Returns:
The SVG string representation.
- Type
- string