is-quad-obtuse
function isQuadObtuse(ps: number[][]): boolean
Defined in global-properties/classification/is-quad-obtuse.ts:15
Returns true
if the given quadratic bezier is obtuse, false
otherwise (i.e.
false
if acute).
Obtuse here is defined as follows: let the quad form a triangle through its
control points P0, P1, P2 where P0 and P2 are the endpoints. If both interior
angles ∠P0 and ∠P2 are <= 90 degrees then the quad is considered acute,
otherwise it is considered obtuse.
Note!
Green circles are draggable!
Note!
Green circles are draggable!
Parameters:
Name | Type |
---|---|
ps | number[][] |