dd-normal
function ddNormal(ps: number[][], t: number): number[][]
Defined in local-properties-at-t/normal/double-double/dd-normal.ts:15
- Returns a normal vector (not necessarily of unit length) of a bezier curve
at a specific given parameter value
tby simply taking thetangentat that point and rotating it by 90 degrees.
Parameters:
| Name | Type | Description |
|---|---|---|
ps | number[][] | a linear, quadratic or cubic bezier, e.g. [[0,0],[1,1],[2,1],[2,0]] |
t | number | the t parameter |