Directed ray anchored by a single point.
Parameters: |
|
---|
Return True if this ray is approximately equal to another ray, within precision limits.
Return True if the specified point is on the ray.
Return the distance between the given point and the ray.
Create a ray from two or more collinear points. The direction of the ray is derived from the first two distinct points, with the first point assumed to be the anchor. The order of the remaining points is unimportant, however they must all be on the ray.
Parameters: |
|
---|
Return True if the specified point is behind the anchor point with respect to the direction of the ray. In other words, the angle between the ray direction and the vector pointing from the ray’s anchor to the given point is greater than 90 degrees.
Return True if the specified point is in the space to the left of, but not behind the ray.
Return True if the specified point is in the space to the right of, but not behind the ray.
Compute the projection of a point onto the ray. This is the closest point on the ray to the specified point.
Parameters: |
|
---|
The anchor, or starting point of the ray.
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.
Return a line collinear with this ray.
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.
Return two distinct points along the ray, such that ray.from_points(ray.points) will construct an equivalent ray. The first point returned is always the anchor point.
The starting point of the ray. Alias for anchor