libpysal.cg.Ray

class libpysal.cg.Ray(origin, second_p)[source]

Geometric representation of ray objects.

Parameters:
originlibpysal.cg.Point

The point where the ray originates.

second_p

The second point specifying the ray (not origin.)

Examples

>>> l = Ray(Point((0, 0)), Point((1, 0)))
>>> str(l.o)
'(0.0, 0.0)'
>>> str(l.p)
'(1.0, 0.0)'
Attributes:
olibpysal.cg.Point

The origin (point where ray originates). See origin.

plibpysal.cg.Point

The second point on the ray (not the point where the ray originates). See second_p.

__init__(origin, second_p)[source]

Methods

__init__(origin, second_p)