Public Member Functions | |
| __init__ (self, float length=1.0) | |
| set_length (self, float length) | |
| position (self, t) | |
| Public Member Functions inherited from corc.curve.Curve | |
| __init__ (self, float tmin, float tmax, nsamples=4096) | |
| np.ndarray | p (self, float t) |
| derivatives (self, float t) | |
| float | speed (self, float t) |
| float | s_of_t (self, float t) |
| float | t_of_s (self, float s) |
Additional Inherited Members | |
| Public Attributes inherited from corc.curve.Curve | |
| tmin = tmin | |
| tmax = tmax | |
| length = float(self._sgrid[-1]) | |
| Static Public Attributes inherited from corc.curve.Curve | |
| bool | closed = False |
| Protected Member Functions inherited from corc.curve.Curve | |
| _build_arclength_table (self, int nsamples) | |
| Protected Attributes inherited from corc.curve.Curve | |
| _tgrid = tgrid | |
| _sgrid = np.concatenate([[0.0], np.cumsum(seg)]) | |
Straight centerline along +z starting at the origin. The length is set by the cable (pitch * numTurns * 2*pi).
| corc.curve.StraightLine.__init__ | ( | self, | |
| float | length = 1.0 ) |
| corc.curve.StraightLine.position | ( | self, | |
| t ) |
Return [x, y, z] at parameter t; components are Jets if t is a Jet. Subclasses implement this with jet-friendly operations.
Reimplemented from corc.curve.Curve.
| corc.curve.StraightLine.set_length | ( | self, | |
| float | length ) |