RegularPolygon¶
- class kgpy.optics.surface.aperture.RegularPolygon(plot_kwargs=<factory>, num_samples=1000, is_obscuration=False, decenter=<factory>, radius=<Quantity 0. mm>, num_sides=8, offset_angle=<Quantity 0. deg>)¶
Bases:
Polygon- Parameters
- __init__(plot_kwargs=<factory>, num_samples=1000, is_obscuration=False, decenter=<factory>, radius=<Quantity 0. mm>, num_sides=8, offset_angle=<Quantity 0. deg>)¶
Attributes
Calculate the angle subtended by each edge of the polygon by dividing the angle of a circle (360 degrees) by the number of sides in the regular polygon.
Calculate the angle subtended between a vertex and a point on the center of an edge.
Calculate the distance from the center of the polygon to the center of an edge of a polygon.
Methods
__init__([plot_kwargs, num_samples, ...])copy()- rtype
typing.TypeVar(CopyableT, bound= Copyable)
- rtype
typing.TypeVar(CopyableT, bound= Copyable)
is_unvignetted(points[, num_extra_dims])- rtype
plot(ax[, components, component_z, ...])write_to_dxf(file_writer, unit[, ...])- rtype
Inheritance Diagram
- copy()¶
- Return type
typing.TypeVar(CopyableT, bound= Copyable)- Parameters
self (CopyableT) –
- copy_shallow()¶
- Return type
typing.TypeVar(CopyableT, bound= Copyable)- Parameters
self (CopyableT) –
- is_unvignetted(points, num_extra_dims=0)¶
- Return type
- Parameters
- plot(ax, components=('x', 'y'), component_z=None, plot_kwargs=None, transform_extra=None, sag=None)¶
- write_to_dxf(file_writer, unit, transform_extra=None, sag=None)¶
- property broadcasted¶
-
decenter:
kgpy.transform.rigid.Translate¶
- property edge_subtent¶
Calculate the angle subtended by each edge of the polygon by dividing the angle of a circle (360 degrees) by the number of sides in the regular polygon. :return: Angle subtended by each edge
- property half_edge_subtent¶
Calculate the angle subtended between a vertex and a point on the center of an edge. This is sometimes a more useful quantity than the subtent of an entire edge. :return:
- property min_radius¶
Calculate the distance from the center of the polygon to the center of an edge of a polygon. :return: The minimum radius of the polygon.
-
offset_angle:
astropy.units.Quantity= <Quantity 0. deg>¶
-
plot_kwargs:
typing.Dict[str,typing.Any]¶
-
radius:
astropy.units.Quantity= <Quantity 0. mm>¶
- property shape¶
- property shapely_poly: Polygon¶