Normal vector to a line
Vector is normalized (length == 1)
Direction of the vector is chosen to satisfy inequality norm * p >= 0
Point a line passes through
Line has no end point
undefined
Line has infinite length
positive infinity number
Line has no middle point
undefined
Shape name
name of the shape
Slope of the line - angle in radians between line and axe x from 0 to 2PI
slope of the line
Get coefficients [A,B,C] of a standard line equation in the form Ax + By = C
[A, B, C] = line.standard
coefficients [A,B,C]
Line has no start point
undefined
Check if point belongs to line
Query point
true if point belongs to line
Return coordinate of the point that lies on the line in the transformed
coordinate system where center is the projection of the point(0,0) to
the line and axe y is collinear to the normal vector.
This method assumes that point lies on the line and does not check it
point on a line
Check if line is incident to other line
line to check
Returns true if incident to other line
Check if line is parallel to other line
line to check
true if parallel or incident to other line
Staticpoints2norm
Class representing a line