gdsfactory.geometry.functions

gdsfactory.geometry.functions#

Functions

angles_deg(pts)

Returns the angles (degrees) of the connection between each point and the next.

angles_rad(pts)

Returns the angles (radians) of the connection between each point and the next.

area(pts)

Returns the area.

centered_diff(a)

centered_diff2(a)

curvature(points, t)

Args are the points and the tangents at each point.

extrude_path(points, width[, ...])

Deprecated.

manhattan_direction(p0, p1[, tol])

Returns manhattan direction between 2 points.

path_length(points)

Returns: The path length.

polygon_grow(polygon, offset)

Returns a grown closed shaped polygon by an offset.

radius_of_curvature(points, t)

remove_flat_angles(points)

remove_identicals(pts[, grids_per_unit, closed])

sign_shape(pts)

snap_angle(a)

Returns angle snapped along manhattan angle (0, 90, 180, 270).