Edge

class jwst.skymatch.region.Edge(name=None, start=None, stop=None, next=None)[source]

Bases: object

Edge representation

An edge has a “start” and “stop” (x,y) vertices and an entry in the GET table of a polygon. The GET entry is a list of these values:

[ymax, x_at_ymin, delta_x/delta_y]

Attributes Summary

next

start

stop

ymax

ymin

Methods Summary

compute_AET_entry(edge)

Compute the entry for an edge in the current Active Edge Table

compute_GET_entry()

Compute the entry in the Global Edge Table

intersection(edge)

is_parallel(edge)

Attributes Documentation

next
start
stop
ymax
ymin

Methods Documentation

compute_AET_entry(edge)[source]

Compute the entry for an edge in the current Active Edge Table

[ymax, x_intersect, 1/m] note: currently 1/m is not used

compute_GET_entry()[source]

Compute the entry in the Global Edge Table

[ymax, x@ymin, 1/m]

intersection(edge)[source]
is_parallel(edge)[source]