Required to generate proper CSS classes and other class related IDs.
The UID of this drawable object.
Get the angle between this and the passed line (in radians).
(optional) The line to calculate the angle to. If null the baseline (x-axis) will be used.
this
Create a deep clone of this instance.
A type safe clone if this instance.
This function should invalidate any installed listeners and invalidate this object. After calling this function the object might not hold valid data any more and should not be used.
Get the closest position T from this line to the specified point.
The counterpart for this function is Line.vertAt(Number).
The point (vertex) to measure the distance to.
The line position t of minimal distance to p.
Get the end point of this path segment.
The end point of this path segment.
Get the tangent's end point at the end point of this segment.
The end point of the ending point's tangent.
Get the start point of this path segment.
The start point of this path segment.
Get the tangent's end point at the start point of this segment.
The end point of the starting point's tangent.
Check if the given point is located on this line. Optionally also check if
that point is located between point a
and b
.
The point to check.
If set to to true (default=false) the point must be between start and end point of the line.
True if the given point is on this line.
Get the length of this line.
The the minimal distance between this line and the specified point.
The point (vertex) to measre the distance to.
The absolute minimal distance.
Inverse this path segment (in-place) and return this same instance (useful for chaining).
This path segment instance (for chaining).
Create a string representation of this line.
The string representing this line.
Get line point at position t in [0 ... 1]:
[P(0)]=[A]--------------------[P(t)]------[B]=[P(1)]
The position scalar.
The vertex a position t.
Generated using TypeDoc
A line consists of two vertices a and b.
This is some refactored code from my 'Morley Triangle' test
https://github.com/IkarosKappler/morleys-trisector-theorem
Vertex