Private
_p1Private
_p2Checks if the line is horizontal.
true is this is the case.
Checks if the line is vertical.
true is this is the case.
Gets the length of the line.
Gets the angle between the given line.
The reference line.
A value indicating if we keep the orientation, aka knowing if the angle is clockwise or not.
The angle.
Checks if the current line intersect with the given shape.
The reference shape.
true it the two shapes intersect, otherwise false.
Private
dotGets the orthogonal line passing starting at given point on the line.
The point to start from.
Expected length of the line (default value is 20)
A value indicating the direction of the line (default value is false)
The orthogonal line.
Does the current line goes in the same direction as the given one.
The comparision line.
true if this is the case, otherwise false.
Checks if the given point is in the line.
The reference point.
A value used as a threshold / range to check if the point is on the line.
Checks if the given point is in the line.
The reference point.
A value used as a threshold / range to check if the point is on the line.
Is the current line perpendicular to the given one.
The comparision line.
true if this the case, otherwise false.
Checks if the line is parallel to another one.
The reference line.
true both lines are parallel.
Rotates the line by the given angle in degree, around a point.
The rotation angle.
The origin from which the rotation is supposed to be done.
Translates the line using the given vector for direction.
The vector defining the direction.
Static
getGets the angle between two lines.
x-coordinate of the starting point of the first line.
y-coordinate of the starting point of the first line.
x-coordinate of the ending point of the first line.
y-coordinate of the ending point of the first line.
x-coordinate of the starting point of the second line.
y-coordinate of the starting point of the second line.
x-coordinate of the ending point of the second line.
y-coordinate of the ending point of the second line.
A value indicating if we keep the orientation, aka knowing if the angle is clockwise or not.
Static
getGets the length of the line starting at (x1,y1) and closing at (x2,y2).
x coordinate of start of the line.
y coordinate of start of the line.
x coordinate of end of the line.
y coordinate of end of the line.
The length.
Static
Private
reorderGenerated using TypeDoc
Defines a line in two-dimensional coordinates.