Public Member Functions | |
| __init__ (self, float ws, float r) | |
| points (self, s) | |
| point (self, float s) | |
| normals (self, s) | |
| distance (self, x, y) | |
Public Attributes | |
| ws = ws | |
| r = r | |
| float | width = ws + 2.0 * r |
| float | perimeter = 2.0 * ws + 2.0 * math.pi * r |
| float | s_b = 0.5 * ws |
| float | s_c = 0.5 * ws + math.pi * r |
| float | s_d = 1.5 * ws + math.pi * r |
| float | s_e = 1.5 * ws + 2.0 * math.pi * r |
| rutherford.stadium.Stadium.__init__ | ( | self, | |
| float | ws, | ||
| float | r ) |
| rutherford.stadium.Stadium.distance | ( | self, | |
| x, | |||
| y ) |
Signed distance of (x, y) (arrays) to the perimeter: negative inside, zero on the curve.
| rutherford.stadium.Stadium.normals | ( | self, | |
| s ) |
Outward unit normals at arc length s (array).
| rutherford.stadium.Stadium.point | ( | self, | |
| float | s ) |
| rutherford.stadium.Stadium.points | ( | self, | |
| s ) |
(x, y) of the perimeter points at arc length s (array), taken modulo the perimeter.
| rutherford.stadium.Stadium.r = r |
| float rutherford.stadium.Stadium.s_b = 0.5 * ws |
| rutherford.stadium.Stadium.ws = ws |