Public Member Functions | |
| __init__ (self, float tmin, float tmax, nsamples=4096) | |
| position (self, t) | |
| 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) |
Public Attributes | |
| tmin = tmin | |
| tmax = tmax | |
| length = float(self._sgrid[-1]) | |
Static Public Attributes | |
| bool | closed = False |
Protected Member Functions | |
| _build_arclength_table (self, int nsamples) | |
Protected Attributes | |
| _tgrid = tgrid | |
| _sgrid = np.concatenate([[0.0], np.cumsum(seg)]) | |
| corc.curve.Curve.__init__ | ( | self, | |
| float | tmin, | ||
| float | tmax, | ||
| nsamples = 4096 ) |
|
protected |
| corc.curve.Curve.derivatives | ( | self, | |
| float | t ) |
Return (p, v, a, j) as 3-vectors at parameter t.
| np.ndarray corc.curve.Curve.p | ( | self, | |
| float | t ) |
| corc.curve.Curve.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 in corc.curve.Lame, corc.curve.StraightLine, corc.curve.Trefoil, and corc.tests.test_curve_frame._Circle.
| float corc.curve.Curve.s_of_t | ( | self, | |
| float | t ) |
Arc length from tmin to t (table + local Gauss correction).
| float corc.curve.Curve.speed | ( | self, | |
| float | t ) |
| float corc.curve.Curve.t_of_s | ( | self, | |
| float | s ) |
Invert the arc length: Newton on s(t) - s with table start.
|
protected |
|
protected |
|
static |
| corc.curve.Curve.length = float(self._sgrid[-1]) |
| corc.curve.Curve.tmax = tmax |
| corc.curve.Curve.tmin = tmin |