NewPathFromData returns a new path using the raw data.
(d []float64)
| 134 | |
| 135 | // NewPathFromData returns a new path using the raw data. |
| 136 | func NewPathFromData(d []float64) *Path { |
| 137 | return &Path{d} |
| 138 | } |
| 139 | |
| 140 | // Reset clears the path but retains the same memory. This can be used in loops where you append |
| 141 | // and process paths every iteration, and avoid new memory allocations. |
nothing calls this directly
no outgoing calls
no test coverage detected