libpysal.cg.Ray¶
- class libpysal.cg.Ray(origin, second_p)[source]¶
Geometric representation of ray objects.
Examples
>>> l = Ray(Point((0, 0)), Point((1, 0))) >>> str(l.o) '(0.0, 0.0)'>>> str(l.p) '(1.0, 0.0)'Create a ray from an origin and a second point on the ray.
- Parameters:¶
- origin : libpysal.cg.Point¶
The point where the ray originates.
- second_p : libpysal.cg.Point¶
The second point specifying the ray (not
origin).