Infinite directed line.
Parameters: |
|
---|
Return True if this line is approximately equal to another line, within precision limits.
Return True if the specified point is on the line.
Return the signed distance from the line to the specified point. The sign indicates which half-plane contains the point. If the distance is negative, the point is in the “left” half plane with respect to the line, if it is positive, the point is in the “right” half plane.
Parameters: |
|
---|
Create a line given a normal vector perpendicular to it, at the specified distance from the origin.
Parameters: |
|
---|
Create a line from two or more collinear points. The direction of the line is derived from the first two distinct points, the order of the remaining points is unimportant.
Parameters: |
|
---|
Return a line parallel to this one that passes through the given point.
Parameters: |
|
---|
Return a line perpendicular to this one that passes through the given point. The orientation of this line is consistent with planar.Vec2.perpendicular().
Parameters: |
|
---|
Return True if the specified point is in the half plane to the left of the line.
Return True if the specified point is in the half plane to the right of the line.
Compute the projection of a point onto the line. This is the closest point on the line to the specified point.
Parameters: |
|
---|
Reflect a point across the line.
Parameters: |
|
---|
Direction of the line as a unit vector. You may set this attribute to any non-null vector, however it will be normalized to unit-length.
Normal unit vector perpendicular to the line. You may set this attribute to any non-null vector, however it will be normalized to unit-length. Modifying this will also affect the direction vector accordingly.
The signed distance from the origin to the line.
Return two distinct points along the line, such that line.from_points(line.points) will construct an equivalent line.