Skip to content

editor / turnedCorners

Function: turnedCorners() ​

turnedCorners(corners, box): readonly Corner[]

Defined in: model/turned-corners.ts:21

Corners of a shape as drawn: its straight corners turned by its angle about the center of its box, clockwise on screen (DERIV-turned-shape step 4). Each corner keeps its radius and its number; at 0° the corners are returned as they are, bit for bit.

Parameters ​

corners ​

readonly Corner[]

straight corners, placed in the SVG (freeShapeCorners, regularPolygonCorners)

box ​

TurnedBox

the shape's angle, position, width and height

Returns ​

readonly Corner[]

the corners as drawn, in the same order

Kind ​

domain

See ​

DERIV-turned-shape