polygon_coords¶
- rubin_sim.maf.stackers.polygon_coords(nside, radius, rotation_angle)¶
Find the x,y coords of a polygon.
This is useful for plotting dither points and showing they lie within a given shape.
- Parameters:
- nsideint
The number of sides of the polygon
- radiusfloat
The radius within which to plot the polygon
- rotation_anglefloat
The angle to rotate the polygon to.
- Returns:
- [float, float]
List of x/y coordinates of the points describing the polygon.