Skip to content

rotatedRectPoints

Core and matricesfunctionOpenCV 5.0.0
import { rotatedRectPoints } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTS_0
FUNCTIONrotatedRectPoints
RETURN TYPE[Point2f, Point2f, Point2f, Point2f]
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Return the four corners of a rotated rectangle as independent point values.

rotatedRectPoints(_0: RotatedRect): [Point2f, Point2f, Point2f, Point2f];
_0

0 argument (RotatedRect).

Returns

The [Point2f, Point2f, Point2f, Point2f] result.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.