Computes u values at given relative lengths. :param locations: list of distances. :returns: list of u values. :param pts: the points to compute the parameters at.
(self: Mixin1DProtocol, locations: Iterable[float])
| 2205 | return us |
| 2206 | |
| 2207 | def paramsLength(self: Mixin1DProtocol, locations: Iterable[float]) -> list[float]: |
| 2208 | """ |
| 2209 | Computes u values at given relative lengths. |
| 2210 | |
| 2211 | :param locations: list of distances. |
| 2212 | :returns: list of u values. |
| 2213 | :param pts: the points to compute the parameters at. |
| 2214 | """ |
| 2215 | |
| 2216 | us = [] |
| 2217 | |
| 2218 | curve = self._geomAdaptor() |
| 2219 | |
| 2220 | L = GCPnts_AbscissaPoint.Length_s(curve) |
| 2221 | |
| 2222 | for d in locations: |
| 2223 | u = GCPnts_AbscissaPoint(curve, L * d, curve.FirstParameter()).Parameter() |
| 2224 | us.append(u) |
| 2225 | |
| 2226 | return us |
| 2227 | |
| 2228 | def tangentAt( |
| 2229 | self: Mixin1DProtocol, locationParam: float = 0.5, mode: ParamMode = "length", |
no test coverage detected